HTML area type property
Examples
With clickable image map area:
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="../images/sun.gif" type="image/gif">
</map>
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="../images/sun.gif" type="image/gif">
</map>
try it"
Browser Support
All major browsers support the type attribute.
Definition and Usage
type attribute specifies the MIME type of the target URL.
The property is used only in the href attribute type property is set before.
Note: This attribute is purely advisory.
Differences between HTML 4.01 and HTML5
The type property is a new property HTML <area> tag.
grammar
<area type="MIME_type">
Property Value
值 | 描述 |
---|---|
MIME_type | 链接文档的 MIME 类型。. 查看标准MIME类型的完整 IANA MIME 类型 列表。 |