Home > Web Front-end > Front-end Q&A > How to use html link tag

How to use html link tag

藏色散人
Release: 2019-05-27 09:58:13
Original
5532 people have browsed it

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template