Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS there is no attribute “rel” w3c validation issue

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32163
    rtmedia
    Member

    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.

    Thanks

    Richy

    #53366
    TheDoc
    Member

    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!

    #53224
    rtmedia
    Member

    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 Doc

    #51463
    angus
    Participant

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.