homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

XHTML Doctype Error Troubleshoot

 1:22 pm on Oct 4, 2004 (gmt 0)

I'm relatively new to webmastering and have one little error message that prevents my code from validating. I used DWMX's default navigation bar with rollovers and it inserts all it's own code. When I try to validate my code with the DTD XHTML 1.0 Transitional//EN, I keep getting this error message: "...there is no attribulte "onload"
...ght="20" border="0" id="home" onload=""

I've checked for the spelling and no errors there. I don't want to change my doctype if possible and this is the only error that comes up? Can anyone enlighten me?




 1:28 pm on Oct 4, 2004 (gmt 0)

Just a thought but is it all in lowercase? XHTML has to have all its tags in lower so onLoad will fail, onload will work.


 1:32 pm on Oct 4, 2004 (gmt 0)

Yes, all lowercase.


 1:44 pm on Oct 4, 2004 (gmt 0)

Also, what is the complete tag that the onload event is on?

I'm guessing it's an img tag, and onload can only be used on the body or frameset elements according to the specifications [w3.org]. However, most browsers allow onload to be added to objects and images too.


 1:47 pm on Oct 4, 2004 (gmt 0)

Is your onload attribute in a body tag?


 3:18 pm on Oct 4, 2004 (gmt 0)

Through trial & error, I eliminated the -onload=""- and now the code validates. Thanks for the assist.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved