map

Form

<map name="Map name"> ... </map>

Attributes

attribute default description
id none specifies the unique ID
class none specifies the style sheet class
style none specifies the style sheet
name none specifies the name for the map

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 map tag specifies the (shape and coordinate) of a clickable map area.

Related Tags

a__, area

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>