HTML <map> 이름 속성
예시
클릭 가능한 영역이 있는 이미지 맵:
<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> 태그