Meaning of Rel atttibute
Asked Answered
S

2

1

I found a strange a href in a webpage. It looks like

<a href=... rel="servername.com|6d63402c" ...other properties... ></a>

What does cryptic |6d63402c mean ? Is it a bitwise OR operation or just a string?

The document contains different links with different rels in this style.

Streamy answered 7/11, 2013 at 18:46 Comment(1)
See: w3.org/TR/html5/document-metadata.html#attr-link-relKallick
I
3

The rel attribute specifies the link relationship type.

In HTML5 you may only use rel values that

As the value servername.com|6d63402c is not defined/registered, the page uses invalid markup.

As to what this specific value does: we can’t know (well, because it is not defined/registered). It’s probably some internal or third-party script that makes use of it. They should better use the data-* attribute instead of misusing rel.

Inkhorn answered 8/11, 2013 at 18:42 Comment(0)
B
1

Per the tag wiki: The rel attribute is used in HTML elements to specify the relationship and connection between the current document and the linked document.

Sources: W3C (link)

Source: W3Schools (link)

Biramous answered 7/11, 2013 at 18:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.