video

The video element represents a video or movie.

HTML5

Attributes

<video attribute-name="attribute-value"></video>
Name Value Description
autoplay autoplay | empty Automatically play when the page is loaded
controls controls | empty Display the controls
height non-negative integer Height of the canvas in CSS pixels
loop loop | empty Instructs the UA to seek back to the start of the audio stream upon reaching the end
mediagroup string Instructs the UA to link multiple videos and/or audio streams together
muted muted | empty Represents the default state of the audio stream, potentially overriding user preferences
poster URI Address of an image file for the UA to show while no video data is available
preload auto | empty Hints to the UA that optimistically downloading the entire audio stream is considered desirable
metadata Hints to the UA that the user is not expected to need the audio stream, but that fetching its metadata (duration and so on) is desirable
none Hints to the UA that the user is not expected to need the audio stream, or that minimizing unnecessary traffic is desirable
src URI URL for the audio stream
width non-negative integer Width of the canvas in CSS pixels

Global

Example | autoplay

Example | controls

Example | height

Example | loop

Example | mediagroup

Example | muted

Example | poster

Example | preload

Example | src

Example | width

External

W3C HTML5

W3C HTML 5.1