html The link tag is used to define the relationship between the document and external resources. The link element is an empty element, which only contains attributes. This element can only exist in the head section, but it can appear any number of times.
#html How to use the link tag?
Function: Define the relationship between documents and external resources.
Description: The most common use is to link style sheets.
Note: The link element is an empty element, it only contains attributes. This element can only exist in the head section, but it can appear any number of times.
html link tag usage example
<html> <head> <link rel="stylesheet" type="text/css" href="http://www.w3school.com.cn/html/csstest1.css" > </head> <body> <h1>我通过外部样式表进行格式化。</h1> <p>我也一样!</p> </body> </html>
Effect:
The above is the detailed content of How to use html link tag. For more information, please follow other related articles on the PHP Chinese website!