HTMLDocument::Relationship(3) A document relationship


HTMLDocument::Relationship< >
= Rel(String rel)
| Rev(String rev)


A document relationship may either be 'forward' ( Rel ), which states that the related resource is the rel document of the current document, or 'reverse' ( Rev ), which is equivalent to that resource having a 'forward' relationship to this document. If the resource is not a HTML document, then reverse relationships may be the only way to express the relationship, but in practice forward relationships are far more useful.

There is no official list of link types, and browser support varies. Some common relationships such as 'next' or 'first' have consistent support, though.

A link type of Rel("shortcut icon") is used to reference a 'favicon'.


Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see


The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.