The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <LISTING> | Next Tag: <MARQUEE> |


<MAP>

A container tag for multiple <AREA> tags that define an image map.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.2 and later 1.0 and later 2.0 and later
Notes:
  • This tag requires the </MAP> end tag.
Attributes:
CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

NAME = "Text" (Required)
The name of the image map.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.2 and later 1.0 and later 2.0 and later

Notes:

  • The <IMG> tag that displays the graphic used by the image map by refer to the map name in its USEMAP attribute.

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

Example:
<MAP NAME="TestMap">
<AREA SHAPE="RECT" COORDS="0, 0, 199, 99" HREF="PageA.htm">
<AREA SHAPE="RECT" COORDS="199, 0, 399, 99" HREF="PageB.htm"> 
<AREA SHAPE="RECT" COORDS="399, 0, 599, 99" HREF="PageC.htm">
</MAP>
<IMG SRC="coords.gif" USEMAP="#TestMap">
How It Looks:

| Index | Previous Tag: <LISTING> | Next Tag: <MARQUEE> |