HTML <a> Tag with 'type' Attribute
<a href="http://www.htmlcodes.ws/images/image-codes/city-skyline.gif" download type="image/gif">Download Image</a>
How to Use the above Code
- Replace the value of the
hrefattribute to be the URL of the resource you're linking to. - Replace the anchor text (
HTML Codes) with the text you want the user to see (or other content such as an image). - Replace
text/htmlwith the MIME/media type for the target URL. If you're not sure which MIME type to use, see this complete list of MIME types.
About the type Attribute
The type attribute specifies the MIME type of the linked resource. Only to be used when the href attribute is present.
This attribute is purely advisory.