<video width="320" height="240" controls> <source type="video/mp4" src="/media/movie.mp4"> <source type="video/ogg" src="/media/movie.ogg"> </video>
The type attribute specifies the media type of the source file.
A media type, formerly known as a MIME type, indicates the format and nature of a file.
Browsers don't look at a source's file extension, but rather what media type it is.
A list with common HTTP Media Types is available on this site.
Tip: The IANA organization maintains a list of all official media types.
There are hundreds of media types.
These are some common types that are used on the web.
|text/csv||Comma Separated Values|
Tip: Check our HTTP Media Types Reference for a more complete list of common media types.
|media-type||The media type of the source file.|
Here is when type support started for each browser: