HTML Area Tag Type Attribute

HTML Area Tag Type Attribute defines the MIME type of the linked resource or webpage.

HTML Area Tag Type Attribute is used only when the HTML href attribute is also used in the HTML area tag.


Syntax of using the HTML Area Tag Type Attribute

<area type="MIME_type">

The HTML Area Tag Type Attribute can have the following values:

HTML Area Type Attribute Value Description
MIME_type Defines the MIME type of the linked resource or webpage.

Please visit http://www.iana.org/assignments/media-types  to see complete list of standard MIME types.


Example of using HTML Area Tag Type Attribute

HTML Area type attribute code Output
Click on the shapes to watch them:
<img alt="Shapes" src=" HTMLAreaTagEx.gif" 
usemap="#shapemap" width="145" height="126" />
<map name="shapemap">
<area coords="25,30,12" shape="circle" href="Circle.jpg" 
target="_blank" type="image/gif" />
<area coords="62,30,82,40" shape="rect" href="triangle.jpg" 
target="_blank" type="image/gif" />
<area coords="115,35,10" shape="circle" href="star.jpg" 
target="_blank" type="image/gif" />
</map>
Click on the shapes to watch them:

Shapes

Here in the above HTML Area Type Attribute example, we are telling the browser that the linked resource or webpage is having image or gif type.


HTML Area Tag Type Attribute Supporting Browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Tagged , , , , , , . Bookmark the permalink.