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