Wednesday, 21 July 2021

Difference between rev and rel


REL=LinkTypes (relationship to link)

REV=LinkTypes (relationship from link)

The LINK element defines document relationships. Any number of LINK elements may be contained in the HEAD of a document.

The REL and REV attributes define the nature of the relationship between the documents and the linked resource. REL defines a link relationship from the current document to the linked resource while REV defines a relationship in the opposite direction. For example,

<LINK REL=Glossary HREF="foo.html">

indicates that foo.html is a glossary for the current document while

<LINK REV=Subsection HREF="bar.html">

indicates that the current document is a subsection of bar.html. 

rel is short for relation. It specifies the relation between the tag and href . href stands for hypertext reference. It's the source of the file used by the tag.

rev - reverse relationship

No comments:

Post a Comment