coords attribute (a, area)
Sets the position of a shape. You can select the type of shape with the shape attribute.
String that sets a comma-separated list of coordinates.
One of the following values:
|The shape attribute must be set to 'circle'. x - center x position, y - center y position, r - radius.|
|The shape attribute must be set to 'polygon'. The Cartesian coordinates (x1, y1), (x2, y2), ..., (xn, yn) of its vertices, listed in order as the area is circulated in counter-clockwise fashion.|
|The shape attribute must be set to 'rectangle'. x1, y1 - are the upper left x,y coordinates, x2, y2 - are the bottom right x,y coordinates of the rectangle.|
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the coords attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments