Latest

recent

HTML Area coords Attribute

Definition and Usage

The coords attribute specifies placement of an area in a specified object or image.
Used together with the map element and shape attribute.

Syntax

<area coords="coordinates" />

Syntax Example

<area coords ="0,0,82,126" />

Attribute Values

Value Description
left,top,right,bottom If shape attribute is "rect" (rectangle). Specifies the coordinates of the four corners of the rectangle.
centerx,centery,radius If shape attribute is "circ" (circle). Specifies the coordinates of the circle center and the radius.
x1,y1,x2,y2,..,xn,yn If shape attribute is "poly" (polygon). Specifies the coordinates of each of the edges of the polygon.


Browser Support

The attribute is supported in all major browsers.
HTML Area coords Attribute Reviewed by 1000sourcecodes on 02:06 Rating: 5
Powered by Blogger.