/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: rel

[this page | pdf | back links]

The HTML rel attribute indicates the relationship between the current document and the document to which it is linked. It applies to <a>, <area> and <link> elements.

 

Valid attribute values (when used with <a>, <area> and <link> elements) include:

 

Value

Description

alternate

An alternative representation of the document

author

Link to resource describing author of document

bookmark

URL used for bookmarking (for <a>and <area>)

dns-prefetch

Browser should preemptively do a DNS on the origin of the target (for <link>)

external

Referenced document is not part of same site as original (for <a>)

help

Document providing help

icon

Get icon representing document (for <link>)

license

Copyright information on the document

next

Next document in series

nofollow

An unendorsed document (e.g. a paid link, search spiders may not then follow that link)

noreferrer

Browser should not send an HTTP referrer header if user follows hyperlink

noopener

Browser context created by following hyperlink should not have an opener browser context (for <a>)

pingback

Address of pingback server handling pingbacks relating to origin of document (for <link>)

preconnect

Browser should pre-emptively connect to target (for <link>)

prefetch

Browser should pre-emptively fetch and cache target (for <area>, <link>)

preload

Browser should pre-emptively fetch and render target (for <link>)

prerender

Same as preload for some browsers (for <link>)

prev

Previous document in series

search

A search tool covering the document

stylesheet

Import a CSS stylesheet (for <link>)

tag

A keyword relevant to the current document (for <a>and <area>)

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile