Latest web development tutorials

HTML a rel attribute

HTML a Tag Reference HTML <a> tag

Examples

Use the link rel attribute:

<a rel="nofollow" href="http://www.functravel.com/">Cheap Flights</a>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support rel attribute.

Note: Even though the browser does not use the property in any way, but search engines can use this property to get more information about the link.


Definition and Usage

rel attribute <a> tag is used to specify the relationship between the current document and the linked document.

Only use the href attribute to use the rel attribute.


Differences between HTML 4.01 and HTML5

Removed some value, add some new value.


grammar

<a rel="value">

Property Value

value description
alternate Optional version of the document (such as a printed page, translated or mirror pages).
stylesheet External style sheet document.
start The first document in the collection.
next The next document in the collection.
prev Collection before a document.
contents Document directory.
index Document index.
glossary The document terms glossary or explain.
copyright Documents that contain copyright information.
chapter Chapter of the document.
section Section of the document.
subsection Sub-segments of the document.
appendix Document appendix.
help Help documentation.
bookmark Related documents.
nofollow Google uses "nofollow", is used to specify the Google search engine not to follow links.
licence
tag
friend


HTML a Tag Reference HTML <a> tag