Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

<map>

현재 번역은 완벽하지 않습니다. 한국어로 문서 번역에 동참해주세요.

개요

HTML <map> 요소는 이미지 맵(클릭 가능한 링크 영역)을 정의하기 위해 <area>와 함께 사용됩니다.

속성

이 요소는 전역 속성을 포함합니다.

name
name 속성은 map에 이름을 부여하여 참조될수 있도록 합니다. 이 속성은 무조건 존재해야 하며, 공백 문자가 없는, 비어있지 않은 값이여야합니다. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value.

예제

<map>
  <area shape="circle" coords="200,250,25" href="another.htm" />
  <area shape="default" />
</map>

사양

사양 상태 주석
WHATWG HTML Living Standard
The definition of '<map>' in that specification.
Living Standard  
HTML5
The definition of '<map>' in that specification.
Recommendation  
HTML 4.01 Specification
The definition of '<map>' in that specification.
Recommendation  

브라우저 호환성

기능 Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 1.0 (1.7 or earlier) [1][2] (Yes) 1.0 1.0
기능 Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 1.0 1.0 (1.0) [1][2] (Yes) 1.0 1.0

Gecko 참고

[1] Starting in Gecko 5.0 (Firefox 5.0 / Thunderbird 5.0 / SeaMonkey 2.2), empty maps are no longer skipped over in favor of non-empty ones when matching when in quirks mode. For example, consider the following HTML:

<map name="a"></map>
<map name="a">
  <area shape="rect" coords="25,25,75,75" href="#fail">
</map>
<img usemap="#a" src="image.png">

Prior to Gecko 5.0, the <img> element would have matched to the second, non-empty map. Now it matches against the first one, even though it's empty.

[2] From Firefox 17 the default styling of the <map> HTML element is display: inline; and no more display: block;. This matches the behavior of the other browsers and was already the case in quirks mode.

같이 보기

문서 태그 및 공헌자

 이 페이지의 공헌자: azunyan3
 최종 변경: azunyan3,