Thread: Doctype
View Single Post
Old 01-05-2009, 11:35 PM   #2 (permalink)
htmlbasictutor
Super Moderator
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 2,975
iTrader: 0 / 0%
Latest Blog:
Website Testing

htmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web pro
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
__________________
HTML Basic Tutor - Learn to code your web pages/blogs to be cross-browser compatible
Basic Computer Information - Computer Basics for website owners
htmlbasictutor is online now   Reply With Quote