When creating a clickable rectangular area for an image, the coords attribute needs four values. What does the four cords values represent?



When Creating A Clickable Rectangular Area For An Image The Coords Attribute Needs Four Values What Does The Four Cords Values Represent class=

Sagot :

Answer:

Specifying shape and size with coords

The coords attribute specifies the shape and size of the clickable area. The meaning of the coordinate values depends on the value of the shape attribute. In all cases, the (x, y) coordinates use the top-left corner as the origin (0, 0).

Coordinates for Rectangles

If the shape attribute is set to rect, the coordinates define the top-left and bottom-right of the rectangle. There should be four numeric values, separated by commas. The first two values are the (x, y) coordinates of the first corner. The third and fourth numbers are the (x, y) coordinates of the second corner.

<img src="/wp-content/uploads/shapes.png" usemap="shapes-map-rect"> <map name="shapes-map-rect"> <area shape="rect" title="Square" coords="19,28,222,228" href="/wp-content/uploads/square.png" target="_blank" /> </map>

Explanation:

sorry lang kung mali please dont report