Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple values for rel attribute

Tags:

html

Can I have multiple values for rel attributes? Like so:

<a href="#" rel="value1 nofollow">Link</a> 

.. is it valid and cross-browser compatible?

like image 725
eozzy Avatar asked Dec 10 '09 04:12

eozzy


2 Answers

It's valid. I'm not sure if it's supported by all browsers, though, but I would guess that it is.

rel = link-types [CI] This attribute describes the relationship from the current document to the anchor specified by the href attribute. The value of this attribute is a space-separated list of link types.

like image 62
Zach Hirsch Avatar answered Oct 04 '22 08:10

Zach Hirsch


Yes it's valid and it works on all browsers, including IE7 and IE8

like image 21
Creation web Paris Avatar answered Oct 04 '22 10:10

Creation web Paris