HTML <img> usemap Özelliği

❮ HTML <img> etiketi

Örnek

Tıklanabilir alanları olan bir resim haritası:

<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>

Tanım ve Kullanım

Nitelik usemap, bir resmi istemci tarafı resim haritası olarak belirtir (bir resim haritası, tıklanabilir alanları olan bir resimdir).

Öznitelik , usemapbir öğenin ad özniteliği ile ilişkilendirilir ve ile <map> arasında bir ilişki oluşturur . <img><map>

Not: Öğe, bir veya öğesinin soyundan usemapgeliyorsa kullanılamaz . <img><a> <button>


Tarayıcı Desteği

Attribute
usemap Yes Yes Yes Yes Yes

Sözdizimi

<img usemap="#mapname">

Özellik Değerleri

Value Description
#mapname A hash character ("#") plus the name of the <map> element to use

❮ HTML <img> etiketi