HyperText Markup Language/Tag List/area

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

Use[edit | edit source]

For specifying coordinates of image maps.

Example[edit | edit source]

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

Required attributes[edit | edit source]

coords[edit | edit source]

The coordinates of area in image map.

href[edit | edit source]

The link to another page specified.

shape[edit | edit source]

Defining the shape of the image map.

Optional attributes[edit | edit source]

accesskey[edit | edit source]

For adding keyboard shortcuts instead of clicking on the area.

alt[edit | edit source]

For giving information about the area.

nohref[edit | edit source]

For making a click on the area mean nothing.

target[edit | edit source]

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

Standard attributes[edit | edit source]

More info[edit | edit source]

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