For faster navigation, this Iframe is preloading the Wikiwand page for Link relation.

Link relation

This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (August 2024) (Learn how and when to remove this message)

A link relation is a descriptive attribute attached to a hyperlink in order to define the type of the link, or the relationship between the source and destination resources. The attribute can be used by automated systems, or can be presented to a user in a different way.

In HTML these are designated with the rel attribute on link, a, or area elements. Example uses include the standard way of referencing CSS, <link rel="stylesheet" href="example.css" />, which indicates that the external resource linked to with the href attribute is a stylesheet, so a web browser will generally fetch this file to render the page. Another example is rel="shortcut icon" for the popular favicon icon.[1][2]

Link relations are used in some microformats (e.g. rel="tag" for tagging), in XHTML Friends Network (XFN), and in the Atom standard, in XLink, as well as in HTML. Standardized link relations are one of the foundations of HATEOAS as they allow the user agent to understand the meaning of the available state transitions in a Representational State Transfer system.

The Internet Engineering Task Force (IETF) has a registry of standardized link relations,[3] and a procedure for extending it defined in RFC 5988. HTML5 also defines valid link relations.[4]

In HTML4, the rev attribute of a link is also defined, which defines the relationship between the resources. The attribute is removed in HTML5.

Semantic Web implementation

[edit]

The RDF typed links are fundamental in LOD datasets for identifying the relationship (predicate) type of RDF triples, contributing to the automatic processability of machine-readable statements of the Giant Global Graph on the Semantic Web. The typed links in RDF are expressed as the value of the rdf:type property, defining the relationship type using well-established controlled vocabulary terms or definitions from LOD datasets such as

<rdf:type rdf:resource="http://schema.org/Person" />

References

[edit]
  1. ^ Dubost, Karl (October 2005). "Web site meta data profile: favicon, …". World Wide Web Consortium. Retrieved 23 February 2011.
  2. ^ Dubost, Karl (24 October 2005). "How to Add a Favicon to your Site". World Wide Web Consortium. Retrieved 25 February 2011.
[edit]


{{bottomLinkPreText}} {{bottomLinkText}}
Link relation
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?