In a recent "links for light reading" reference was made to a very interesting article by Chris Coyier on attribute selectors such as 'rel'.

http://css-tricks.com/attribute-selectors/

At the very basic level, the article exemplifies h1[rel="external"]{color : red;} used with the html:

<h1 rel="external">Attribute Equals</h1>

I tried this, and several other really useful examples, but later found that the validator doesn't like it/them, saying:

there is no attribute "rel"
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

Do we just ignore this? I always thought of 'rel' being used with links, but on playing about I find that <div rel="whatever"> works fine too.



So, my questions:



1. Do I ignore the invalidation, and

2. When is 'rel' semantically unsound?

Thanks,



Bob







*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to