area

Form

<area>
<area /> (description in XHTML)

Attributes

attribute default description
id none specifies the unique ID
class none specifies the style sheet class
style none specifies the style sheet
href none specifies the URL
nohref none specifies that this area has no associated link
shape none specifies the shape of a clickable area
coords none specifies the coordinates of a clickable area
alt none specifies an alternative text for the area

Support

HTML 3.2, HTML 4.01 [STF], XHTML 1.0 [STF], XHTML 1.1
Microsoft (MSDN)
[IE3 or later][Firefox 1 or later][Safari 1 or later][Opera 3 or later][Netscape 2 or later]

Explanation

The area tag specifies an area in the clickable map. This tag should be enclosed in the <map> tags.
In XHTML, you should type like <area />.

Related Tags

a__, map

Sample Code [Output]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
<h1>Sample</h1>
<img src="photo.jpg" usemap="#test">
<map name="test">
<area href="http://www.openspc2.org/" shape="rect" coords="0,0,160,60">
<area href="../index.html" shape="rect" coords="0,61,160,120">
</map>
</body>
</html>