Why Validate?
In addition to the explaination given above:
-If you use a Strict DOCTYPE it helps you clean up your extra coding that should be in your stylesheet.
-Cleaner coding makes it easier for the search engine bots and those using assistive technology to read your website.
-Cleaner coding makes it easier to maintain a website, especially if you get out of the habit of using inline styles and embedded (internal) stylesheets.
From the article above:
Quote:
|
"...Do remember: household-name companies expect people to visit because of the name and in spite of dreadful websites. Can you afford that luxury?...
|
Quote:
|
What is the best doctype for HTML created in FP?
|
If you only know HTML, and want to learn to code in preparation for the future but still not ready for XHTML then you would use the Strict declaration.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
(HTML 4.01 forms part of the XTHML standard)
On the other hand, if you know XHTML (or want to learn it) then use
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Differences Between XHTML And HTML