Map
-
The
map
element, in conjunction with anyarea
element descendants, defines animage map
name
-
The
name
attribute 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
name
attribute of anothermap
element in the same document
-
The
id
If theid
attribute is specified, it must have the same value as thenamed
attribute
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
-
area
is 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
href
attribute is used.
coords
rect
-
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-left
andbottom-right
corners 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
coords
attribute must, if specified, contain a valid list of integers
shape
- The shape of the associated hot spot
- The specifications for HTML defines the values
rect
which defines a rectangular regioncircle
which defines a circular regionpoly
which defines a polygondefault
which 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
area
element 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
href
attribute is present
usemap
- A string providing the page-local URL
- That is, a URL that begins with the hash or pound symbol ("#") of the
img
element which defines the image map to apply to the image #mymap