Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML a rel property

HTML rel property

HTML a Tag Reference HTML tag

Example

Link using the rel property:

Cheap Flights

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the rel property.

**Note:** Although browsers do not use this property in any way, search engines can use it to obtain more information about the link.


Definition and Usage

The tag's rel property is used to specify the relationship between the current document and the linked document.

The rel property can only be used when the href property is used.


Differences between HTML 4.01 and HTML5

Some values were removed and some new values were added.


Syntax

Attribute values

Value Description
alternate An alternate version of the document (e.g., a print page, a translated page, or a mirror).
stylesheet An external style sheet for the document.
start The first document in a collection.
next The next document in a collection.
prev The previous document in a collection.
contents A table of contents for the document.
index An index for the document.
glossary A glossary or explanation of the terms 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 to the document.
help A help document.
bookmark A related document.
   
nofollow Google uses "nofollow" to specify that the Google search engine should not follow the link.
licence  
tag  
friend  

HTML a Tag Reference HTML tag