A media type indicates the format and nature of a link or document.
On an <a> tag, the default is ‘text/html‘.
Go to <a type="text/html" target="_blank" href="https://microsoft.com/">Microsoft</a>
A media type, formerly known as a MIME type, indicates the format and nature of a file.
Browsers don't look at a link's file extension, but rather what media type it is.
A list with common media types is available on this site.
Tip: The IANA organization maintains a full list of official media types.
There are hundreds of media types.
Below are some common ones 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.
<a href="URL" type="media-type" />
|media-type||The media type of the linked page. For a page link the default is 'text/html'.|
Here is when type support started for each browser:
Back to <a>