atom:link
a reference from an entry or feed to a Web resource
Element information
Namespace: http://www.w3.org/2005/Atom
Schema document: syndication.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Choice [0..*]
- Any element Namespace: ##other, Process Contents: skip
- Any element Namespace: ##local, Process Contents: skip
from type atom:undefinedContent
from group atom:anyForeignElement
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
xml:base | [0..1] | xsd:anyURI | from group atom:atomCommonAttributes | |
xml:lang | [0..1] | Anonymous | from group atom:atomCommonAttributes | |
Any attribute | [0..*] | Namespace: ##other, Process Contents: skip | from group atom:local | |
href | [1..1] | xsd:anyURI | the link's IRI | |
rel | [0..1] | Anonymous | the link relation type. If the "rel" attribute is not present, the link element MUST be interpreted as if the link relation type is "alternate" | |
type | [0..1] | atom:atomMediaType | an advisory media type: it is a hint about the type of the representation that is expected to be returned when the value of the href attribute is dereferenced | |
hreflang | [0..1] | atom:atomLanguageTag | the language of the resource pointed to by the href attribute. When used together with the rel="alternate", it implies a translated version of the entry | |
title | [0..1] | xsd:string | human-readable information about the link | |
length | [0..1] | xsd:string | an advisory length of the linked content in octets; it is a hint about the content length of the representation returned when the IRI in the href attribute is mapped to a URI and dereferenced |
Used in
- Anonymous type of element atom:entry
- Anonymous type of element atom:feed
- Anonymous type of element atom:source
Sample instance
<link rel="alternate" type="text/html" hreflang="en" href="http://example.org/"/>