- This topic is empty.
March 28, 2011 at 7:38 am #32163rtmediaMember
Hey guys.. Just trying to validate up the following http://www.fromtipstotoes.co.uk basically I’m using a css changer which is controlled by the finger nails at the bottom of the page. anyways on w3c valdiator i get the error below. I need to have the rel attribute in order for the style switcher to work.. anyone know a way around this so that the pages will become w3c valid?
there is no attribute “rel”
…7,58,101,51,101,45,96″ href=”pink” rel=”pink” class=”styleswitch” alt=”pink” />
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).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the element to incorporate flash media in a Web page, see the FAQ item on valid flash.
RichyMarch 28, 2011 at 1:39 pm #53366TheDocMember
Change your Doctype from Strict to Transitional.
Validation is a tool to see any glaring errors, not the be all end all of your website!March 29, 2011 at 7:48 pm #53224rtmediaMember
nope still get the error with Transitional.
I think it’s coz I have used a very old ‘hotspot’ method.
Might need to re-think it and use absolute positioned divs instead.
Thanks for your advice though DocApril 13, 2011 at 4:46 pm #51463angusParticipant
Don’t worry if it doesn’t validate. If it works fine in all the browsers you are trying to support, you are fine. The user is not going to worry whether or not the page has validated. Validation is a tool to look for syntax errors and places to improve code.
- The forum ‘CSS’ is closed to new topics and replies.