shape
a - This attribute was used to define a region for hyperlinks to create an image map. The values are circle
, default
, polygon
, and rect
. The format of the coords attribute depends on the value of shape. For circle
, the value is x,y,r
where x
and y
are the pixel coordinates for the center of the circle and r
is the radius value in pixels. For rect
, the coords attribute should be x,y,w,h
. The x,y
values define the upper-left-hand corner of the rectangle, while w
and h
define the width and height respectively. A value of polygon
for shape requires x1,y1,x2,y2,...
values for coords. Each of the x,y
pairs defines a point in the polygon, with successive points being joined by straight lines and the last point joined to the first. The value default
for shape requires that the entire enclosed area, typically an image, be used.
Note: Use the usemap
attribute for the <img>
element and the associated <map>
element to define hotspots instead of the shape
attribute.
area - The shape of the associated hot spot. The specifications for HTML 5 and HTML 4 define the values rect
, which defines a rectangular region; circle
, which defines a circular region; poly
, which defines a polygon; and default
, which indicates the entire region beyond any defined shapes. Many browsers, notably Internet Explorer 4 and higher, support circ
, polygon
, and rectangle
as valid values for shape; these values are .
Attributes
- Graph
- Supertypes
- trait Attrclass Objecttrait Matchableclass Any
- Self type
- shape.type