Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the use of the lt;area> tag in HTML

Shulou Source: shulou.com Published: 2022-06-01 06:33:15 10月03日 Update

This article is to share with you about the use of tags in HTML. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Label definition and instructions for use

The tag defines the area inside the image map (image mapping refers to an image with clickable areas).

The element is always nested inside the tag.

Note:

The usemap attribute in the tag is associated with the name in the element to create a relationship between the image and the mapping.

Differences between HTML 4.01 and HTML5

HTML5 provides some new properties, while some of the properties in HTML 4.01 are no longer supported.

The difference between HTML and XHTML

In HTML, the tag does not end the tag.

In XHTML, the label must be closed correctly.

Attribute

New: a new attribute in HTML5.

Attribute value description

Alternate text for the specified area of alt text. If you use the href property, this property is required.

Coords coordinates specifies the coordinates of the area.

Href URL specifies the target URL for the area.

HreflangNew language_code specifies the language of the target URL.

MediaNew media query specifies what media / devices the target URL is optimized for. Default: all.

Nohref value HTML5 does not support it. Specify areas where there are no related links.

RelNew alternate

Author

Bookmark

Help

License

Next

Nofollow

Noreferrer

Prefetch

Prev

Search

Tag specifies the relationship between the current document and the target URL.

Shape default

Rect

Circle

Poly specifies the shape of the area.

Target _ blank

_ parent

_ self

_ top

Framename specifies where to open the target URL.

TypeNew MIME_type specifies the MIME type of the target URL.

Note: MIME = Multipurpose Internet Mail Extensions.

Global attribute

Tags support the global properties of HTML.

Event attribute

The tag supports the event attribute of HTML.

Thank you for reading! This is the end of this article on "what is the use of tags in HTML?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Attributes tags areas targets between images support events elements global content differences more articles good practical instructions for use at the same time coordinates media Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information macOS Shulou Tech Info MySQL MariaDB