There are a number of attributes for the video element.
The following table shows the attributes for video element.
Attribute | Description |
---|---|
autoplay | start playing the video when loaded. |
preload | load the video in advance. |
controls | The browser will not display controls unless this attribute is present. |
loop | tells the browser to repeat the video. |
poster | Specifies an image to display when the video data is being loaded. |
height | Sets the height of the video. |
width | Sets the width of the video. |
muted | the video will be muted initially. |
src | Sets the video to display. |