HyperText Markup Language/Tag List/area

From Wikibooks, open books for an open world
Jump to: navigation, search

Use[edit]

For specifying coordinates of image maps.

Example[edit]

<area shape="rect" href="map_2.html" coords="300, 30, 29, 211" alt="Map of Woods" />

Required attributes[edit]

coords[edit]

The coordinates of area in image map.

href[edit]

The link to another page specified.

shape[edit]

Defining the shape of the image map.

Optional attributes[edit]

accesskey[edit]

For adding keyboard shortcuts instead of clicking on the area.

alt[edit]

For giving information about the area.

nohref[edit]

For making a click on the area mean nothing.

target[edit]

For declaring the window or frame the link shall be displayed in.

Standard attributes[edit]

More info[edit]

A link to a page with more info, then the name of the site the info came from (i.e. W3Schools).