View Single Post
Old 2007-12-13, 07:15 AM   #1
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Quote:
Weird thing about using doctypes is nearly every site you try and validate produces tons of errors. Is it really needed in sites?
Yes, the doctype declaration is important. If you're not going to follow the strict rules, you can always use HTML 4.01 Transitional instead of HTML 4.01 Strict, and you can use XHTML 1.0 Transitional instead of XHTML 1.0 Strict. If you're getting "tons of errors" then now would be a good time to begin validating all your pages and learning how to write valid html code that doesn't throw errors.

Quote:
somebody understands this?
Sure, actually many bodies understands.

Seriously, if you're not up to writing strict XHTML code, then just don't do it. You may want to consider dropping back to a doctyle of XHTML 1.0 Transitional or HTML 4.01 Transitional to avoid having so many errors.

Your problem seems to have begun on line 6, where you didn't close an element/tag. If you're going to be using XHTML then you need to be aware that you have to close some tags you may not have been used to closing in earlier HTML versions. XHTML uses self-closing elements, so things like your META tags should end with "/>" instead of ">".

Some reading on doctypes:
http://www.alistapart.com/articles/doctype/
http://htmlhelp.com/tools/validator/doctype.html
http://www.w3schools.com/tags/tag_doctype.asp

HTH


.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote