Forum Moderators: open
The first step in tagging a good page and in my opinion the first step in Search Engine Optimization is to validate the page. [validator.w3.org...]
Without the doctype it will not validate.
I have heard that eventually pages without doctypes will not render. If that's true, I expect it's a ways away.
I tag in xhtml and validate strict. That may come back to bite me but I'm prepared to lower the standards to transitional if need be.
Here's the first 2 lines of all my pages:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Sorry I don't have the other options in front of me but you can find them at w3schools.com.
My advice is to just accept that you need to have a doctype and get into the habit of using it.
Then validate the page. It's a great habit to get into as it will show you the errors and you can correct them before you post it.
AND The search engines will love you.
Tom
List of Valid Doctypes [w3.org]
Users care about content not doctypes
Well, true, but not all users searching Google are using IE 5.5 / IE 6.0 on a desktop PC. It's not much good if the top results in Google won't render properly on a mac or a PDA - that will just make Google look bad.
A correct doctype at the start of a page and valid markup is not a guarantee but a good indication that the code is platform independent.
I have heard that eventually pages without doctypes will not render. If that's true, I expect it's a ways away.
Wow, if that's true, I would expect it to be at least ten years away. Actually I would be surprised if it ever happened. Imagine the first browser to come out that's so strict . . . would it ever achieve even 1% marketshare? Imagine 95% of websites simply not rendering at all; this is one that's going to take a ton of time to implement, because it will have to go clear through the educational process (getting webmasters to add the doctype), through development, and then through the enormous user-opposition. And all in all, I'm not sure requiring a doctype would make the Internet a better place. There's something to be said for a publishing medium that anyone can use without knowing special skills outside of their interest or expertise.
This is not a bad thing. Teaching people to write valid markup makes for a steeper learning curve at the beginning, sure, but adds up to far fewer compatibility headaches in the long run.
And, for those who use WYSIWYG editors, there should be no extra skill in adding a doctype and writing valid code - if the editor is correctly programmed this should happen automatically.
I much prefer writing valid code complete with doctype; however, I believe there are so many pages without a doctype out there already that a browser that won't render those pages just isn't practical yet. Besides all the pages that will continue to be created without a doctype for years down the road yet . . .
In short, I understand and agree with everything you say, but I don't think it's going to happen any time soon if at all. Maybe I'm wrong; time will tell! ;)