Home  >  Article  >  Web Front-end  >  How to use html link tag

How to use html link tag

藏色散人
藏色散人Original
2019-05-27 09:58:135505browse

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.

How to use html link tag

#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:

How to use html link tag

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to use html dir tagNext article:How to use html dir tag