Name

COORDS — NN n/a IE n/a HTML 4

Synopsis

COORDS=”coord1, ... coordN"

Optional

When a link surrounds an image, this attribute defines the coordinate points (relative to the top-left corner of the element) associated with an area map.

Example

<A HREF="#bottom" SHAPE="rect" COORDS="30, 30, 60, 45">
    <IMG SRC="nav.jpg" HEIGHT="50" WIDTH="90" BORDER="0"> 
</A>

Value

Each coordinate is a length value, but the number of coordinates and their order depend on the shape specified by the SHAPE attribute, which may optionally be associated with the element. For SHAPE="rect", there are four coordinates (left, top, right, bottom); for SHAPE="circle", there are three coordinates (center-x, center-y, radius); for SHAPE="poly", there are two coordinate values for each point that defines the shape of the polygon (x1, y1, x2, y2, x3, y3,...xN, yN).

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.