HTML and CSS Reference
In-Depth Information
the value specified should match the title of the referenced document,
but this isn't required.
6.5.4.10. The class, dir, id, lang, and style attributes
The class and style attributes allow you to supply display properties and
class names to control the appearance of the area, although their value
seems limited for this tag. The id attribute allows you to create a name
for the area that might be referenced by a hyperlink. [ The id attribute,
4.1.1.4 ] [ Inline Styles: The style Attribute, 8.1.1 ] [ Style Classes, 8.3 ]
The lang and dir attributes define the language used for this area and
the direction in which text is rendered. Again, their use is not apparent
with this tag. [ The dir attribute, 3.6.1.1 ] [ The lang attribute, 3.6.1.2 ]
6.5.5. A Client-Side Image-Map Example
The following example HTML fragment draws together the various com-
ponents of a client-side image map discussed earlier in this section. It
includes the <img> tag with the image reference and a usemap attribute
with a name that points to a <map> that defines four mouse-sensitive re-
gions (three plus a default) and related links:
<body>
...
<img src="pics/map.gif" usemap="#map1" border=0>
...
<map name="map1">
<area shape=rect coords="0,20,40,100"
href="k_juice.html"
onMouseOver="self.status='How to prepare kumquat juice.'
;return true">
<area shape=rect coords="50,50,80,100"
href="k_soup.html"
onMouseOver="self.status='A recipe for hearty kumquat soup.'
;return true">
 
Search WWH ::




Custom Search