2

I'm a little confused by the rel attribute usage.

Individually I understand rel="author", rel="me" and rel="publisher", however I am wondering if I can mix and match attribute values.

Example 1: On my website, I have a link in the footer which links to my domain. Do I add rel="me", rel="author" or rel="me author"?

Example 2: On my website I have a link to my twitter account. Do I add rel="me" or rel="me publisher"?

Wesley Murch
  • 101,186
  • 37
  • 194
  • 228
iancrowther
  • 5,143
  • 4
  • 25
  • 25
  • 3
    Multiple rel values may be used: http://microformats.org/wiki/rel-faq#How_is_rel_used – Marc B Feb 22 '12 at 20:43
  • Thanks for the link - I have now read the manual! :) – iancrowther Feb 22 '12 at 21:00
  • If you use rel="author nofollow" with Google Authorship, Google Authorship stops working. So although it is valid markup to mix and match, this particular combination doesn't seem to be supported. – henrywright Jan 17 '14 at 11:58
  • Possible duplicate of [Multiple values for rel attribute](http://stackoverflow.com/questions/1878657/multiple-values-for-rel-attribute) – Christian Strempfer Jun 06 '16 at 06:25

2 Answers2

5

You can't add more than one rel attribute into one HTML element, but you can insert more than one argument into one rel attribute value - just delimit them with a space:

<a rel="me author" href="my_page">
<a rel="me publisher" href="twitter_link">
Bram Vanroy
  • 27,032
  • 24
  • 137
  • 239
MarcinJuraszek
  • 124,003
  • 15
  • 196
  • 263
  • @iancrowther only if you use values that would naturally be conflicting. `me author` is fine since you can be the author, but `prev next` wouldn't really make sense. – DisgruntledGoat Feb 23 '12 at 11:45
1

Last time I looked the Google rich snippet tool complained if you had both author and publisher mark-up on the same page.

If I remember correctly, author beats publisher

Tony McCreath
  • 2,882
  • 1
  • 14
  • 21
  • Hey Tiggerito, thanks for doing the check. I think i have the rel's sorted now. THe site is very much in flux at the moment so – iancrowther Feb 23 '12 at 23:36