Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2007-12-13, 07:15 AM   #16
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:55 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc