Advertisement
Home Open Editor ❯

HTML <area> alt Attribute

Example

<img src="desk.jpg" usemap="#image-map">

<map name="image-map">
  <area target="_blank" alt="Computer" title="Computer" href="computer.png" coords="112,31,285,246" shape="rect">
  <area target="_blank" alt="Cup" title="Cup" href="cup.png" coords="327,212,31" shape="circle">
  <area target="_blank" alt="Mobile" title="Mobile" href="mobile.png" coords="296,121,326,176" shape="rect">
  <area target="_blank" alt="Book" title="Book" href="book.png" coords="53,132,115,157,72,237,2,211" shape="poly">
</map>

Try this code ❯

Meaning

Alternative text for unloaded image.

A text string alternative to display on browsers that do not display images.

The text should be phrased so that it presents the user with the same kind of choice as the image would offer when displayed without the alternative text.

**Note:**The alt attribute is required if the href attribute is present.


Standard Syntax

<area alt="text">


Advertisement

Attribute Values

Value Description
text The alternate text for the area, if the image is not loaded
Home Open Editor ❯
Advertisement