HTML <link> rel attribute
HTML <link> tag
Example
In the following example, the rel attribute indicates that the linked
document is a style sheet:
<head>
<link rel="stylesheet" type="text/css" href="theme.css"
/>
</head> |
Try it yourself!
|
Definition and Usage
The rel attribute specifies the relationship between the current document and
the linked
document.
Browser Support

Note: Only the "stylesheet" value of the rel attribute is
fully supported in all major browsers. The other values are only partially
supported.
Syntax
Attribute Values
Value |
Description |
alternate |
An alternate version of the document (i.e. print page,
translated or mirror) |
stylesheet |
An external style sheet for the document |
start |
The first document in a selection |
next |
The next document in a selection |
prev |
The previous document in a selection |
contents |
A table of contents for the document |
index |
An index for the document |
glossary |
A glossary (explanation) of words used in the document |
copyright |
A document containing copyright information |
chapter |
A chapter of the document |
section |
A section of the document |
subsection |
A subsection of the document |
appendix |
An appendix for the document |
help |
A help document |
bookmark |
A related document |
HTML <link> tag
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
 |
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).
|
|