SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Validation help

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Sep 2005
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validation help

    Hi all

    I am trying ti validate my webpages tow3c. I am getting one error now which i dont know how to cure.

    My doctype is......
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    This si the error

    Below are the results of checking this document for XML well-formedness and validity.

    1. Error Line 75 column 31: there is no attribute "onLoad".

    <body bgcolor="#FFFFFF" onLoad="preloadImages();">

    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.

    Anyone know how I get round this

    Grateful for the assistance

  2. #2
    SitePoint Member
    Join Date
    Sep 2006
    Location
    New York City
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think changing it from 'onLoad' to 'onload' will solve your troubles.

  3. #3
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep that should do it, no Upper case, needs to be all lower case for xhtml validation.

    Nadia

  4. #4
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Everytime you use dreamweaver to include a navigation bar (ie your buttons menu), onload="" is included and fails validation also. This attribute will be included for each of your buttons. Before i started using CSS for buttons, this always used to annoy me, however having asked questions whether it can be deleted and testing it, it was proved that on a nav bar this attribute can be removed with no adverse effect.

    Anyone suffering this - just delete it.

  5. #5
    SitePoint Zealot
    Join Date
    Sep 2005
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi all thanks for your help - by putting onload instead of onLoad did the trick. I tried deleting it but that stopped the file working.

    Sorted though thanks a bunch

  6. #6
    SitePoint Enthusiast
    Join Date
    Sep 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Quiz

    Yes deleting in your instance would not be the solution, my post was regarding navigation bars through dreamweaver. Basically i added it in case anyone searches the forum for onLoad issues and has this as their problem.

    Glad you are sorted.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •