Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report