HTML and CSS Reference
In-Depth Information
In fact, only the most recent versions of the popular browsers recognize
the shape value default to provide a catchall area for clicks that fall out-
side all the other defined hotspots. Because areas are in a "first-come,
first-served" order in the <map> tag, you should place the default area
last. Otherwise, it covers up any and all areas that follow in your image
map.
The browsers are lax in their implementation of the shape names. Nets-
cape 4, for example, doesn't recognize "rectangle" but does recognize
"rect" for a rectangular shape. For this reason, we recommend that you
use the abbreviated names.
6.5.4.8. The target attribute
The target attribute gives you a way to control where the contents of
the selected hyperlink in the image map get displayed. The attribute
is commonly used in conjunction with frames or multiple browser win-
dows, and its the value is the name of the frame or window in which
the referenced document should be loaded. If the named frame or win-
dow exists, the document is loaded in that frame or window. If not, a
new window is created and given the specified name, and the document
is loaded in that new window. For more information, including a list of
special target names, see section 11.7 .
6.5.4.9. The title attribute
The title attribute lets you specify a title for the document to which
the image map's area links. The value of the attribute is any string, en-
closed in quotes. The browser might use the title when displaying the
link, perhaps flashing the title when the mouse passes over the area.
The browser might also use the title attribute when adding this link to
a user's bookmarks or favorites.
The title attribute is especially useful for referencing an otherwise un-
labeled resource, such as an image or a non-HTML document. Ideally,
 
Search WWH ::




Custom Search