HTML Basics <link> Tags

Source: Internet
Author: User

Instance

Link an external style sheet:

< Head > <  rel= "stylesheet"  type= "text/css"  href= "Theme.css"  /></head>

,<link> tags are supported by almost all browsers when used with style sheets. But there are few browsers that support the use of other aspects.

Definition and usage

<link> tags define the relationship of documents to external resources.

The most common use of <link> tags is to link style sheets.

The difference between HTML and XHTML

The,<link> tag does not have an end tag in HTML.

In XHTML, the,<link> tag must be properly closed.

Tips and Comments:

Note: The link element is an empty element that contains only attributes.

Note: This element can only exist in the head section, but it can occur any number of times.

The Rel attribute instance of the <link> tag

In the following example, the Rel attribute indicates that the linked document is a style sheet:

< Head > <  rel= "stylesheet"  type= "text/css"  href= "Theme.css"  /></head>
Definition and usage

The rel attribute specifies the relationship between the current document and the linked document.

Grammar
<link rel= "value" >
Property value an alternate version of the
value description
alternate document (such as a printed page, translation, or mirror). The external style sheet for the
stylesheet document.
start The first document in the collection. The next document in the
next collection. The previous document in the
prev collection. The directory for the
contents document. The index of the
index document.
glossary Glossary of terms used in the document (explanation).
Copyright A document containing copyright information. The
Chapter document chapter.
Section The sections of the document.
subsection the section of the document. Appendix to the
appendix documentation.
help support documentation.
bookmark Related documents.

HTML base <link> tags

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.