English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML: <a> rel attribute

HTML <a> tag

Online Example

Link usage with rel attribute:

    <a rel="nofollow" href="https://www.functravel.com/">Cheap Flights</a>
Test and see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the rel attribute.

Note:Although browsers will not use this attribute in any way, search engines can use this attribute to obtain more information about links.

Definition and Usage

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

Only when the href attribute is used can the rel attribute be used.

HTML 4.01 with HTML5differences

Some values have been removed, and some new values have been added.

Syntax

<a rel="value">

Attribute value

Value Description
alternate Optional version of the document (such as print page, translation page, or mirror).
stylesheet External stylesheet of the document.
start First document in the collection.
next Next document in the collection.
prev Previous document in the collection.
contents Table of contents of documents.
index Index of documents.
glossary Glossary or explanation of terms used in the document.
copyright Documents containing copyright information.
chapter Chapters of documents.
section Sections of documents.
subsection Subsections of documents.
appendix Appendix of documents.
help Help documents.
bookmark Related documents.
   
nofollow Google uses "nofollow" to specify that Google search engine should not follow the link.
licence  
tag  
friend  

HTML <a> tag