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

Example Analysis of & lt;link> tag in html

2025-04-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you the "sample analysis of tags in html", the content is simple and clear, hoping to help you solve your doubts, let the editor lead you to study and learn "sample analysis of tags in html" this article.

Link tags for head in html web pages

What is a link tag?

Link tags are usually placed in the head tag of a web page header tag used to link external css files, link favorites icon (favicon.ico), the most common use of tags is to link external style sheets, external resources.

Link attracts screenshots of external CSS and ico website icons

Link instance

Content structure interpretation of link tags when linking external css styles-- css references

The href value is the external resource address. Here is the address of css.

Rel defines the relationship between the current document and the linked document, here is the external css stylesheet, or stylesheet

Type specifies the MIME class of the linked document, where the value is text/css

This forms a complete link tag.

Note that because the link tag is not like a pair, the interpretation also requires a slash tag, where the link style is included.

According to the W3C standard, you need to end directly with a ">" slash, such as forming a complete link tag.

Use link to reference web page favorites icons

The reference code for the ICO icon is as follows:

Content structure interpretation of link tags

The href value is the external resource address. Here is the favorite icon address.

Rel defines the relationship between the current document and the linked document, here are the external icon icon properties

Type specifies the MIME class of the linked document, where the value is image/x-icon

Related knowledge: favicon ico production tutorial

Div+css through the head tag link "" tag explanation, hope to be helpful to everyone. These two are commonly used in a web page, and you may encounter different rel values in roughly the same way.

Special note that the label does not have to be placed in the tag, can be appropriately placed in the lower part of the above, the effect is the same, but the recommendation is placed in the head tag.

The above is all the content of the article "sample Analysis 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.

Share To

Development

Wechat

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

12
Report