homepage Welcome to WebmasterWorld Guest from 54.227.62.141
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
XHTML Doctype Error Troubleshoot
Webmac50




msg:701420
 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?

Thanks,
Webmac50

 

bateman_ap




msg:701421
 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.

Webmac50




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

Yes, all lowercase.

encyclo




msg:701423
 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.

irnbru




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

Is your onload attribute in a body tag?

Webmac50




msg:701425
 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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved