HTML Attributes
HTML usemap attribute
Associates an image with a named map in the document. Use # followed by the map name; provide meaningful alternatives for its linked areas. Applicable elements include: <img>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.
Formal Syntax & Structure
html syntaxhtml
usemap="#campus"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| usemap | fragment reference | Associates an image with a named map in the document. Use # followed by the map name; provide meaningful alternatives for its linked areas. |
Working Example
Example Snippethtml
<img src="map.png" alt="Campus" usemap="#campus"><map name="campus"> <area shape="rect" coords="0,0,50,50" href="/library" alt="Library"></map>