Questions tagged [rel]

The rel attribute specifies the relationship between the current document and the linked document

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

Source: W3C (link)

216 questions
70
votes
4 answers

HTML5 ``

The WHATWG document for HTML5 says that the rel attribute must contain values that are space-separated, and then it gives a table of allowed values. The attribue's value must be a set of space-separated tokens. The allowed keywords and their…
chharvey
  • 6,214
  • 5
  • 45
  • 73
49
votes
3 answers

Link Relations in JSON Representations

I'm designing a RESTful API based on JSON representations. In order to comply with HATEOAS, I use links between resources extensively. Therefore, I followed this suggestion for serializing links in way very similar to ATOM links. Now I have…
b_erb
  • 19,644
  • 8
  • 51
  • 63
47
votes
2 answers

What rel=profile is for?

While doing the HTML for my new template, I stumbled across a new meta tag What's this for? I found it linking to this page, and through Google I found this Microformat but I didn't get it.
Omar Abid
  • 14,746
  • 24
  • 72
  • 105
37
votes
3 answers

External links: when use rel="external" or rel="nofollow"?

In most of my web site I have a lot of external links to my other sites and other external sites. I need to know when is better to use rel="nofollow" or rel="external" in a website?
Overnet
  • 855
  • 3
  • 11
  • 20
14
votes
1 answer

Where to place the humans.txt file if I cannot put it on the site root?

Background I'm building a web application for a client. This app will be accessible to the world and will be placed in a directory (e.g., /my-app) in web-root. A subdomain isn't an option as they don't want to cough up the dough for another SSL…
StevePh
  • 143
  • 4
14
votes
4 answers

When should I use rel=noreferrer?

I have to link some other external sites. I know when to use nofollow. But I am not clear when I should use rel=noreferrer.
Vishal Hule
  • 648
  • 1
  • 7
  • 16
13
votes
2 answers

To see the content POST data trasferred by jQuery

How can you see what the attribute rel contains when it is transferred by POST? I transfer a variable by the rel attribute by jQuery. I would like to know what the attribute, $_POST['answer'], contains. This question is based on: To make an action…
Léo Léopold Hertz 준영
  • 119,377
  • 159
  • 417
  • 655
10
votes
1 answer

All list of values for HTML rel attribute

I would like to know more on rel attribute used with a html elements. Does anyone know some list of attributes useful for SEO and social? This is a link I know it only inside WordPress and it's…
vitto
  • 17,510
  • 29
  • 87
  • 128
9
votes
1 answer

How to select anchor tag with specified class and rel?

I have an anchor tag like this, and I need to select it! ... Is it possible with jQuery to write a selector that selects an anchor that has class like foo bar and rel like 123?
daGrevis
  • 19,600
  • 35
  • 95
  • 134
9
votes
5 answers

jQuery - add/append value to "rel" attribute

I have a set of random links, like this: ... ... ... Some of them may have a rel attribute, some not. How can add a rel attribute with a value to each link, and if the link already has one, then append my value to the…
Alex
  • 60,472
  • 154
  • 401
  • 592
9
votes
4 answers

HATEOAS - How to model link relations that change state

Following HATEOAS principles that each states should be hyperlinked, what is the best way to model links that change resource state? Let's take classical example with orders: { id : 12, state: 'pending', ..., links: [ ..., { …
Tadas Šubonis
  • 1,441
  • 2
  • 14
  • 20
9
votes
2 answers

Is rel=noreferrer officially supported by all webkit browsers?

We're looking to hide/null out the referrer on hyperlinks from a secure web application of ours so that external web sites don't become aware of our non-public secure web site. It appears that rel="noreferrer" would be a great way to do that, but…
8
votes
4 answers

What is the function of the html "rel" attribute?

I understand that rel got something to do with relationships between things (documents? elements?) but I don't really get anything past that. What exactly does it do when used in the achor tag ? Also, are there specific values for x in rel="x"?
secondubly
  • 894
  • 5
  • 15
  • 36
8
votes
2 answers

Should we be using (HTML5) rel attributes within site navigation

Simply straightforward question, but one for which I cannot find any suggestions. Supported HTML5 values that are appropriate are: author first last next prev help license (not "licence") Example Navigation consisting of index, about, contact &…
Dale Rollinson
  • 268
  • 1
  • 5
  • 10
7
votes
1 answer

'itemprop' and 'rel' attributes on same element

Is it valid to use the itemprop attribute and the rel attribute on the same element? The example from Google’s Site Name documentation contains which gives this error in…
unor
  • 82,883
  • 20
  • 183
  • 315
1
2 3
14 15