homepage Welcome to WebmasterWorld Guest from 54.226.21.57
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
XHTML Doctype Error Troubleshoot
Webmac50

10+ Year Member



 
Msg#: 45 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 45 posted 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

10+ Year Member



 
Msg#: 45 posted 1:32 pm on Oct 4, 2004 (gmt 0)

Yes, all lowercase.

encyclo

WebmasterWorld Senior Member encyclo us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 45 posted 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

10+ Year Member



 
Msg#: 45 posted 1:47 pm on Oct 4, 2004 (gmt 0)

Is your onload attribute in a body tag?

Webmac50

10+ Year Member



 
Msg#: 45 posted 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