Home  >  Article  >  Web Front-end  >  How to use area tag in html? Detailed explanation of area tag in html

How to use area tag in html? Detailed explanation of area tag in html

PHPz
PHPzforward
2018-10-15 15:03:332782browse

The content of this article is about how to use the area tag in HTML? The detailed explanation of the area tag in HTML has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.

tag defines the area in the image map (note: image map refers to an image with a clickable area).

area elements are always nested within tags.

Note: The usemap attribute in the tag is associated with the element name attribute, creating a connection between the image and the mapping. The usemap attribute in can reference the id or name attribute in (determined by the browser), so we need to provide Add two attributes, id and name.

Attribute value:

href: Click the link to jump to the area. alt: The message prompted when the image cannot be displayed normally.

Shape & coords:

1. Shape: (The coordinates of the upper left vertex are (x1, y1), the coordinates of the lower right vertex are (x2, y2))\

2. Circle: (The coordinates of the center of the circle are (X1, y1), the radius is r)

3. Polygon: (The coordinates of each vertex are (x1,y1), (x2 ,y2), (x3,y3) ...)

The above is the complete introduction to PHP. If you want to know more aboutHTML video tutorial, please pay attention to the PHP Chinese website.


The above is the detailed content of How to use area tag in html? Detailed explanation of area tag in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete