w3schools    w3Schools
Search :
   
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About
ADVERTISEMENTS

XML Certification
Download XML editor
Custom Programming
 
Table of contents
HTML Reference
HTML by Alphabet
HTML by Function
HTML Attributes
HTML Events
HTML Colornames
HTML Character Sets
HTML ASCII
HTML ISO-8859-1
HTML Symbols
HTML URL Encode
HTML Lang Codes
HTTP Messages

HTML Tags
<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<b>
<base>
<basefont>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<dd>
<del>
<dfn>
<dir>
<div>
<dl>
<dt>
<em>
<fieldset>
<font>
<form>
<frame>
<frameset>
<head>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<map>
<menu>
<meta>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<p>
<param>
<pre>
<q>
<s>
<samp>
<script>
<select>
<small>
<span>
<strike>
<strong>
<style>
<sub>
<sup>
<table>
<tbody>
<td>
<textarea>
<tfoot>
<th>
<thead>
<title>
<tr>
<tt>
<u>
<ul>
<var>

Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality

Browse Tutorials
 

HTML <link> rel attribute


HTML link Tag Reference 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

Internet Explorer Firefox Opera Google Chrome Safari

Note: Only the "stylesheet" value of the rel attribute is fully supported in all major browsers. The other values are only partially supported.


Syntax

<link rel="value" />

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 Reference HTML <link> tag