FANDOM


a coords Edit

Coords
Basic usage: nowiki<a coords="value"></nowiki>
IE Version No
Firefox Yes
Google Chrome No
Safari No
Opera Yes

The coords attribute is used together with the shape attribute to specify the size, shape, and placement of a link in an object or img element. The coordinates of the top-left corner are 0,0.

Attribute ValuesEdit

Value Description
x1,y1,x2,y2 If the shape attribute is set to "rect", it specifies the coordinates of the top-left corner and the bottom-right corner of the rectangle
x,y,radius If the shape attribute is set to "circ", it specifies the coordinates of the circle center and the radius
x1,y1,x2,y2,..,xn,yn If the shape attribute is set to "poly", it specifies the coordinates of the edges of the polygon. If the first and last coordinate pairs are not the same, the browser must add the last coordinate pair to close the polygon