<MAP> | NN all IE all HTML 3.2 |
<MAP>...</MAP> | HTML End Tag: Required |
A map element is a container for area elements that define the location and links of hotspots of client-side image maps. The primary purpose of the map element is to associate an identifier (the name attribute) that the usemap attribute points to when turning an img element into a client-side image map. Most other attributes are style-related and may be applied to the map element so that they are inherited by elements nested within. |
|
Example | |
<IMG src="images/logo.gif" alt="Scroll to the bottom for navigation links." height="300" width="250" usemap="#navigation"> <MAP name="navigation"> <AREA shape="rect" coords="0,0,100,100" href="products.html"> <AREA shape="rect" coords="0,100,300,100" href="support.html"> </MAP> |
|
Object Model Reference | |
[window.]document.getElementById(elementID)
|
|
Element-Specific Attributes | |
|
|
Element-Specific Event Handler Attributes | |
None. |
lang | NN 3 IE 4 HTML 4 |
lang="languageCode" | Optional |
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices. |
|
Example | |
<SPAN lang="de">Deutsche Bundesbahn</SPAN> |
|
Value | |
Case-insensitive language code. |
|
Default | |
Browser default. |
|
Object Model Reference | |
[window.]document.getElementById(elementID).lang
|
name | NN all IE all HTML 3.2 |
name="identifier" | Required |
The identifier to which the usemap attribute of an img element points. Because the usemap attribute is actually a URL type, its value resembles that of a link to an anchor: the name is preceded by a hash symbol (only in the usemap attribute). Despite XHTML's preference for id attributes over name attributes, browsers continue to rely on the name attribute as the connection between an image and an area map. Strict HTML 4 and XHTML DTDs continue to validate the name attribute. |
|
Example | |
<MAP name="navigation"> ...</MAP> |
|
Value | |
Case-sensitive unique identifier. |
|
Default | |
None. |
|
Object Model Reference | |
[window.]document.getElementById(elementID).name
|