Home > Web Front-end > Front-end Q&A > What does the link tag mean?

What does the link tag mean?

烟雨青岚
Release: 2020-06-29 14:49:51
Original
12025 people have browsed it

link means "link" and is a tag in HTML used to establish links to external files. The syntax is ""; the document connected by href is a style sheet. ="stylesheet">

What does the link tag mean?

html, the definition and usage of the link tag: link is a tag in the HTML language. Links can be used to establish links to external files.

The tag defines the relationship between the document and external resources. The most common use of the

tag is to link style sheets. The link tag of

html is used for the current document to reference external documents, and the rel attribute is used to set the relationship between the object and the link purpose.

rel is the English abbreviation of relationship; style in stylesheet means style, sheet means table, and in summary, it means style sheet.

rel="stylesheet" describes the relationship between the current page and the document specified by href. That is to say, the document connected by href is a style sheet.

<linkrel="stylesheet"href="style.css"type="text/css"/>
Copy after login

HTML tag example:

Link to an external style sheet:

<head>
 
  <linkrel="stylesheet"type="text/css"href="theme.css"/>
 
  </head>
Copy after login

htmllink tag attributes:

tuyi.png

The role of the htmllink tag:

linkrel=canonical specifies the canonical URL

For dynamic websites, there are many duplications It is normal for web pages to access the same content.

Recommended tutorial: "HTML Tutorial"

The above is the detailed content of What does the link tag mean?. 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