Get the alternate text of a specific area in an image-map:
The result of x will be:
The alt property sets or returns the value of the alt attribute of an area.
The required alt attribute specifies an alternate text for an area, if the image cannot be displayed.
The alt property is supported in all major browsers.
Return the alt property:
Set the alt property:
Value | Description |
---|---|
text | The alternate text for the area |
Return Value: | A String, representing an alternate text for the area |
---|
Change the alternate text for a specific area in an image-map:
HTML reference: HTML <area> alt attribute