href attribute, short for hypertext reference . It creates a one-way link of the current page with another resource, usually another similar page on the Internet:<a href="http://allinthehead.com/">
href attribute is in the opening tag a , between the opening and closing tags is the text to describe the link:<a href="http://allinthehead.com/"> Drew McLellan </a>
href attribute.rel ativity)rel attribute of the link. I bet that in the head section of your pages there will be something like this:<link rel = "stylesheet" type = "text / css" media = "screen" href = "styles.css" />
rel attribute describes the relationship between the current document and the one it points to. In this case, the value of the rel attribute is the stylesheet . This means that the linked document is a style sheet for the current one: it is this link between them.rel : <link rel = "alternate" type = "application / rss + xml" title = "My RSS Feed"
href = "index.xml" />
alternate : an alternative presentation of the current document.link tag, but you can use the rel attribute with regular links as well. For example, we link to your RSS feed from the section:Subscribe to <a href="index.xml"> my RSS feed </a>.
rel attribute: Subscribe to <a href = "index.xml" rel = "alternate"
type = "application / rss + xml"> my RSS feed </a>.
rel attribute, so you can use whatever you think semantically reasonable. For example, if you have a complex commercial web application that has a link to a hint, then you can determine the relationship between the current page and this hint using the help value:<a href="help.html" rel="help"> need a hint? </a>
rel attribute, there are already some common values when using microformats . Some of the simplest microformats offer options for rel using rel . For example, if you refer to the license under which this document is published, use the rel-license microformat: Distributed under <a href = "http://creativecommons.org/licenses/by/2.0/"
rel = "license"> Creative Commons </a>
rel-tag goes a little further. It is used to indicate that the last part of the URL of the link is the “label” for the current document: Read about <a href = "http://en.wikipedia.org/wiki/Microformats"
rel = "tag"> semantic layout </a>
<a href="http://allinthehead.com/" rel="friend"> Drew McLellan </a>
rel attribute. Like the class attribute, rel can take several values, separated by a space:<a href="http://allinthehead.com/" rel="friend met colleague"> Drew McLellan </a>
rev olution)rel describes the connection between the current page and the one to which it refers, ( note: current page -> another page ) then rev used for inverse relationship: it determines the type of link of the page to which it is linked to the current one ( note: current page <- another page ). Below is an example that can be used in help.html:<a href="shoppingcart.html" rev="help"> return to the store </a>
rev attribute indicates that the current page is a help page, a hint for the one to which it refers.vote-links allows you to use the rev attribute to refine your links. For example, by defining the value of a vote-for , you can indicate that your document supports the one referenced by:I agree with <a href="http://richarddawkins.net/home" rev="vote-for"> Richard Dawkins </a>.
vote-against value. It means that even though you refer to this document, you clearly indicate that you do not agree with it.I agree with <a href="http://richarddawkins.net/home" rev="vote-for"> Richard Dawkins </a>
about the <a href="http://www.icr.org/" rev="vote-against"> creationists </a>.
rel and rev in one link:<a href="http://richarddawkins.net/home" rev="vote-for" rel="muse"> Richard Dawkins </a>
rel and rev . It makes it relatively easy to add more semantic meaning to your links, which creates links that can then be processed by search robots, aggregators or browsers. Let your next step be a close acquaintance with these attributes and empowering links.rel/rev , in particular, or microformats in general.Source: https://habr.com/ru/post/31221/
All Articles