<map>
HTML <map>
요소는 <area>
요소와 함께 이미지 맵(클릭 가능한 링크 영역)을 정의할 때 사용합니다.
시도해보기
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
특성
예제
<map name="primary">
<area shape="circle" coords="75,75,75" href="left.html">
<area shape="circle" coords="275,75,75" href="right.html">
</map>
<img usemap="#primary" src="https://placehold.it/350x150" alt="350 x 150 pic">
결과
예상 결과
키보드의 탭을 눌렀을 때, 위의 예제는 아래 사진처럼 나와야 합니다.
left.html
링크:
right:html
링크:
명세
Specification |
---|
HTML Standard # the-map-element |
브라우저 호환성
BCD tables only load in the browser