Context, relation, target and attributes
01A link is a typed connection: a resource has a specified relationship to another resource, optionally described by attributes.
type="text/html" is an optional target attribute. It is a hint about the target representation, not the meaning of copyright and not verified content.
Source for this drawing: RFC 8288 · Read RFC section 2 ↗
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Terms in this drawing
- Context
- The resource the link statement is about.
- Target
- The related resource identified by the link.
- Serialisation
- A particular byte format carrying the link model.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
Clarifies link cardinality, representation-dependent default context and header parsing; removes the unused application-data registry. The model does not make all HTML, Atom and HTTP serialisations semantically interchangeable.
Read the updated RFC section ↗A link has a context, a relation type and a target, plus optional target attributes. Context means the resource the statement is about; target means the related resource.
- A link has a context, a relation type and a target, plus optional target attributes. Context means the resource the statement is about; target means the related resource.
- A relation describes how resources are connected. It is different from a media type, which describes a representation’s format.
- Link serialisations are the bytes carrying these statements: HTTP Link fields, HTML links and Atom links have their own mapping rules.
- RFC 8288 permits multiple links, including between the same resources. It does not give general significance to their order; applications may define ordering significance.
Fictional example: a successful GET of https://example.com/book has no Content-Location override, so its representation URL is /book. Link: </terms>; rel="copyright" states that /book has copyright terms at /terms. The drawing’s arrow is a relationship, not a request or a proof that the terms are correct. Attribute widths are schematic.
Read the RFC section ↗