A video
element represents a video or movie.
Name | Value | Description |
---|---|---|
Attribute's name | Attribute's value | Attribute's description |
autobuffer | true | false | Indicates the browser to load the video event if it does not autoplay. |
autoplay | true | false | If set to true, the video will start playing as soon as it is ready. |
controls | true | false | If set to true, the user is shown some controls, such as a play button. |
height | numeric value | The height of the element. |
loop | true | false | If specified, indicates that the video is to seek back to the start upon reaching the end. |
poster | url | The address of an image file that the user agent can show while no video data is available. |
src | url | Defines the URL of the video file. |
width | numeric value | The width of the element. |
<video src="file.ogg"> <p>Alternative text</p> </video>