Quick Links
HTML 5 supports <video> tag also. The HTML 5 Video Tag is used for streaming videos files on the web page.
There are three video formats supported for video tag:
i. mp4
ii. webM
iii. ogg
Example:
<video controls>
<source src=”movie.mp4″ type=”video/mp4″>
Your browser does not support the html video tag.
</video>
Attribute’s Of HTML Video Tag:
It’s attribute are as same as audio tag.
1. controls : It defines the video controls which is displayed (as play/pause buttons).
2. autoplay : It specifies that the video will start playing as soon as it is ready.
3. loop : It specifies that the video file will start over again, every time when it is completed.
MIME Types for HTML Video format:
Video Format | MIME Type |
mp4 | video/mp4 |
ogg | video/ogg |
webM | video/webM |
Recommended Posts: