HTML <マップ>名属性
例
クリック可能な領域を含む画像マップ:
<img src="workplace.jpg" alt="Workplace" usemap="#workmap" width="400"
height="379">
<map name="workmap">
<area shape="rect"
coords="34,44,270,350" alt="Computer" href="computer.htm">
<area
shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
<area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>
定義と使用法
必須name
属性は、画像マップの名前を指定します。
この属性はのname
属性に関連付けられており、画像と地図の間に関係を作成します。
<img>
usemap
ブラウザのサポート
Attribute | |||||
---|---|---|---|---|---|
name | Yes | Yes | Yes | Yes | Yes |
構文
<map name="mapname">
属性値
Value | Description |
---|---|
mapname | The name of the image map |
❮HTML<map>タグ