Affiliate link
HTML - Video
video element/tag can be defined to load different types of video format.
HTML Video - Attributes
video attributes allow you to customise the player, playback behaviour, and display.
| Attributes | Description |
|---|---|
| autoplay | Automatically begin playback when the audio file is available. |
| controls | Controls such as playback, volume, pause/resume. |
| height | Height of the video player. |
| loop | Loop playback. |
| muted | Mute audio of the video. |
| playsinline | Play video inline of the element. |
| poster | Image to be displayed before start download video. |
| preload | Preload the audio resource even if is not used. |
| width | Width of the video player. |
Affiliate link
Video Element
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Video element not supported.
</video>Code result
Video Element - Poster, Preload
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Video element not supported.
</video>Code result
Affiliate link
Affiliate link




