Doctype

windows

Guest
Thanks for reading this thread. <br />
<br />
I'm in the midst of redoing a web site. After I rewrote the source correctly, I ran it through the HTML validator at <!-- w --><a class="postlink" href="http://www.w3.org">www.w3.org</a><!-- w -->, which are the people who created the web standard for HTML.<br />
<br />
However, when I run this page: <!-- m --><a class="postlink" href="http://www.geocities.com/shufflepuckrocks/index.html/">http://www.geocities.com/shufflepuckrocks/index.html/</a><!-- m --> through the validator it comes back and says: [ Line 51, column 5: <br />
< body><br />
^<br />
Error: element "BODY" not allowed here;... ] Wierd! <br />
To jump directly to this, go here: <br />
<br />
<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.geocities.com%2Fshufflepuckrocks%2Findex.html&doctype=HTML+4.01+Frameset&outline=">http://validator.w3.org/check?uri=http% ... t&outline=</a><!-- m --> <br />
<br />
Please help me figure this out. You can contact me via e-mail or just post it here.<br />
<br />
Thank you so much! <br />
Have a great day,<br />
blue light special...huh?<!--content-->I don't see any problems with your site. I am guessing that the validator is seeing the "BODY" in the style sheet and telling you that there are two "body" words in the document. Also, the validator may be a little too sensitive or something. Your page looks fine in IE 5.5 and NS 6 but kind of weird in NS 4. I wouldn't worry about it unless the page has problems when you open it (after trying in multiple browsers).<!--content-->HTML validation is DTD sensitive, you are using:<br />
<br />
<!DOCTYPE HTML PUBLIC<br />
"-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"><br />
<br />
which I've never actually seen before, but the <BODY> tag is not allowed in frameset documents so that might be the problem. Change the DTD to something else and see if that helps. <br />
<br />
Regards,<br />
Kevin<!--content-->I'm not sure whether you're using frames. Your page is down. If you are, use the existing DTD. If not, <br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"><!--content-->Thanks for your all's help. I found that this DTD works best: <br />
<br />
< !DOCTYPE HTML PUBLIC<br />
"-//W3C//DTD XHTML 1.0 Transitional//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ><br />
<br />
New problem: The site is being hosted at: <!-- w --><a class="postlink" href="http://www.geocities.com">www.geocities.com</a><!-- w --> , which is alright, however, they throw in an paragraph following the < /html> tag in the source. It is server generated. I guess it's for the pop-up window that everyone so hates. Anyway, without getting rid of that the validator [ <!-- m --><a class="postlink" href="http://validator.w3.org/">http://validator.w3.org/</a><!-- m --> ] will not validate my page [ <!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.geocities.com%2Fshufflepuckrocks%2Findex.html&doctype=XHTML+1.0+Transitional&ss=&sp=">http://validator.w3.org/check?uri=http% ... al&ss=&sp=</a><!-- m --> ]<br />
<br />
The actual URL is: <!-- w --><a class="postlink" href="http://www.geocities.com/shufflepuckrocks/">www.geocities.com/shufflepuckrocks/</a><!-- w --><br />
<br />
A second problem: XHTML isn't that difficult since I already know HTML, however, this validator doesn't like the < hr> tag. If you click on the link above you can read the comment by the validator. I've tried the following two ways of writing also: < hr>< /hr> and < hr /> of which neither worked.<br />
<br />
Peace out,<br />
Blue Light Special...huh?<!--content-->I haven't actually looked at your page yet, but the Geocities problem should be easy to solve. If you go to <br />
<!-- m --><a class="postlink" href="http://validator.w3.org/file-upload.html">http://validator.w3.org/file-upload.html</a><!-- m --><br />
you will see that you can validate files from your own computer. Even if you should be silly enough to use the Yahoo pagebuilder so that you dont HAVE any files on your computer, you can save the file, remove the extra code, and check it.<!--content-->OK, first of all. The pop-up window saying:<br />
"This site was created specifically for IE (Microsoft Internet Explorer) 4.0+ <br />
which you are not using."?<br />
<br />
No point in validating at all, if you are actually planning this as a one-browser site. And besides, pop-ups are annoying enough. Pop-ups with (geocities') pop-ups? Besides, I was using Explorer 4.0.<br />
<br />
I don't think the validator minds <hr>, but then of course I don't know xhtml at all. However "not allowed here" often means a problem elsewhere. I believe the validator objects if you expect a font tag to carry on beyond a <hr> tag.<!--content-->If I understand it correctly, the switch to xhtml was simply so that the document would validate? That should NOT be neccessary. Enclosed is a html version with correct DTD which does validate as error free. As far as I can tell it gives you an identical page, except for the Microsoft Internet Explorer pop-up, which I removed. After all, this document validates, and can be viewed in just about anything.<br />
<br />
By the way, let me say how impressed I am with a forum of this type that allows you to attach files. Amazing!<!--content-->
 
Back
Top