Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Area alt Property

Area alt Property

Area Object Reference Area Object


Definition and Usage

The alt property returns or sets the alt attribute value of a region.

The alt attribute specifies the alternate text to display when the browser cannot show a region.

Syntax

areaObject.alt=

alternate_text


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the alt property.


Example

Example

The following example returns the alternate text of the "Venus" region in an image map:

Runoob Tutorial(runoob.com) Venus

Alternate text for Venus:

The example above produces the following output:

Alternate text for Venus: Venus

Try it »


Area Object Reference Area Object