Map
-
The
mapelement, in conjunction with anyareaelement descendants, defines animage map name-
The
nameattribute gives the map a name so that it can be referenced - The attribute must be present and must have a non-empty value with no space characters
-
The value of the
name attribute must not be a match for the value
of the
nameattribute of anothermapelement in the same document
-
The
id
If theidattribute is specified, it must have the same value as thenamedattribute
Area
- The area element represents
- either a hyperlink with some text and a corresponding area on an image map
- a dead area on an image map
-
areais ahref
href→anchor-area-base-link[mnemonics] alt- A text string alternative to display on browsers that do not display images
-
This attribute is required only if the
hrefattribute is used.
coordsrect-
the value is
x1, y1 ,x2, y2 - The value specifies the coordinates of the corners of the rectangle
-
top-left -
bottom-right
-
-
coords="0,0,253,27"
The coordinates are{0,0}and{253,27}, indicating thetop-leftandbottom-rightcorners of the rectangle, respectively - note rect not
rectangle
-
the value is
circle- the value is
{x,y}radius - the value specifies the coordinates of the circle
center and the
radius - Note circle not
circ
- the value is
poly-
the value is
x1,y1,x2,y2,..,xn,yn - Value specifies the coordinates of the edges of the polygon
- If the first and last coordinate pairs are not the same, the browser will add the last coordinate pair to close the polygon
-
the value is
- The
coordsattribute must, if specified, contain a valid list of integers
shape- The shape of the associated hot spot
- The specifications for HTML defines the values
rectwhich defines a rectangular regioncirclewhich defines a circular regionpolywhich defines a polygondefaultwhich indicates the entire region beyond any defined shapes
href- The hyperlink target for the area
- Its value is a valid URL
-
This attribute may be omitted; if so, the
areaelement does not represent a hyperlink
target- A keyword or author-defined name of the browsing context to display the linked resource
- See target
rel- For anchors containing the href attribute, this attribute specifies the relationship of the target object to the link object
- The value is a space-separated list of link types
- The values and their semantics will be registered by some authority that might have meaning to the document author
- The default relationship, if no other is given, is void
- Use this attribute only if the
hrefattribute is present
usemap
- A string providing the page-local URL
- That is, a URL that begins with the hash or pound symbol ("#") of the
imgelement which defines the image map to apply to the image #mymap