Using <link> where 'rel' is not 'stylesheet'

Under what circumstances can an element be used <link>

where rel

is something other than stylesheet

? HTML5 supports several other values rel

on elements link

including

  • archives

  • author

  • first

    , last

    , next

    ,prev

  • help

  • index

    , up

  • More details at https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types .

But the elements link

go into the section head

; they do not match the content of the page. What then is the point of linking to a bunch of semantically interesting documents if the user cannot open the link?

+3


source to share


2 answers


Historically, some web browsers have displayed "structural" rel

links such as "first", "previous", "next", "last", etc. in the user interface. For example, some early versions of the iCab browser displayed toolbar buttons for these links .



Currently, they are not effectively used by web browsers. I am not aware of their use. Indeed, there is no clear use for them in many modern web applications. (There's no obvious "next" page from this Stack Overflow question, for example.)

+3


source


Like many other tags in a section head

, it link

provides contextual information that is often more useful to browsers, bots, and search engines than end users. For example, prior to 2014, Google allowed you to associate a listing with your Google+ profile using an attribute rel=author

. In these cases, more context is required for the system to work.



Ultimately, however, the end user should end up with more context-sensitive, organized and structured content or, in some cases, meta-content that just doesn't fit anywhere (like a page icon or links to archived content).

+1


source







All Articles