In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what is the use of tags in HTML, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Example
Label definition and instructions for use
Tags define hyperlinks that are used to link from one page to another.
The most important attribute of an element is the href attribute, which specifies the target of the link.
In all browsers, the default appearance of the link is as follows:
Unaccessed links are underlined and blue
Links that have been accessed are underlined and purple
The active link is underlined and red
Tips and comments
Tip: if you do not use the href property, you cannot use the hreflang, media, rel, target, and type properties.
Tip: the linked page is usually displayed in the current browser window unless another target is specified.
Tip: please use CSS to change the style of the link.
Differences between HTML 4.01 and HTML5
In HTML 4.01, the tag can be either a hyperlink or an anchor. In HTML5, the tag is a hyperlink, but if there is no href attribute, it is just a placeholder for the hyperlink.
HTML5 has some new properties, and some HTML 4.01 properties are no longer supported.
Attribute
New: a new attribute in HTML5.
Attribute value description
Charset char_encoding HTML5 does not support it. Specifies the character encoding of the target URL.
Coords coordinates HTML5 does not support it. Specifies the coordinates of the link.
DownloadNew filename specifies download link
Href URL specifies the target URL of the link.
Hreflang language_code specifies the benchmark language of the target URL. Used only if the href property exists.
MediaNew media_query specifies the media type of the target URL. Default value: all. Used only if the href property exists.
Name section_name HTML5 does not support it. Specify the name of the anchor.
Rel alternate
Author
Bookmark
Help
License
Next
Nofollow
Noreferrer
Prefetch
Prev
Search
Tag specifies the relationship between the current document and the target URL. Used only if the href property exists.
Rev text HTML5 does not support it. Specifies the relationship between the target URL and the current document.
Shape default
Rect
Circle
Poly HTML5 does not support it. Specifies the shape of the link.
Target _ blank
_ parent
_ self
_ top
Framename
Specifies where to open the target URL. Used only if the href property exists.
_ blank: a new window opens.
_ parent: open the link in the parent window.
_ self: by default, the current page jumps.
_ top: opens a link in the current form and replaces the current entire form (frame page).
TypeNew MIME_type specifies the MIME type of the target URL. Used only if the href property exists.
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.
The above is all the content of this article "what's the use of tags in HTML?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.