video
Definition and Usage
The <video> tag specifies video, such as a movie clip or other video streams. The HTML 5<video>
tag is used to specify video on an HTML document. For example, you could embed a music video on your web page for your visitors to listen to and watch.
Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and Ogg.
- MP4 = MPEG 4 files with H264 video codec and AAC audio codec
- WebM = WebM files with VP8 video codec and Vorbis audio codec
- Ogg = Ogg files with Theora video codec and Vorbis audio codec
MIME Types for Video Formats
Format | MIME-type |
---|---|
MP4 | video/mp4 |
WebM | video/webm |
Ogg | video/ogg |