a rel Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

The rel attribute specifies the relationship between the current document and the linked document.

Search engines can use this attribute to get more information about a link.

Attribute Values

Value Description
alternate an alternate representation of the document (i.e. print page, translated or mirror)
author the author of the document
bookmark Permanent URL used for bookmarking
external Indicates that the referenced document is not part of the same site as the current document
help a help document
licensecopyright information for the document
next the next document in the series
nofollow Links to an unendorsed document.
noreferrer Requires that the browser should not send an HTTP referer header if the user follows the hyperlink
noopener Requires that any browsing context created by following the hyperlink must not have an opener browsing context
prev The previous document in a selection
search Links to a search tool for the document
tagA tag for the current document

A link with a rel attribute:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p>
<a rel="nofollow" href="http://java2s.com">link</a>
</p><!-- w  w  w.  ja  v a 2 s.co m-->

</body>
</html>

Related Tutorials