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">
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
I think changing it from 'onLoad' to 'onload' will solve your troubles.
Yep that should do it, no Upper case, needs to be all lower case for xhtml validation.
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.
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 :)
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.