Easy Tutorial
❮ Jsref Function Dom Obj Checkbox ❯

Area alt Attribute


Definition and Usage

The alt attribute returns the value that can be set for the alt attribute of a region.

The alt attribute specifies the alternative text to be displayed when the browser cannot display a region.

Syntax


Browser Support

All major browsers support the alt attribute.


Example

The following example returns the alternative text for the "Venus" region in an image map:

Output of the above example:

❮ Jsref Function Dom Obj Checkbox ❯