Build
Javascript, CSS, ASP, PHP, Java, HTML, Flash, Software Tutorials, SQL

Design
Style, Layout, Domains

Premote
Advertising, Marketing, Communities, Search Engines

Sell
Selling Advertising, Online Business's

Newsletter
Subscribe, Unsubscribe

Doctype page headers

The doctype tag tells the browser what standard the page conforms to. Until now doctypes did not have to be including but with the creation of XHMTL 1.0, they must know be put in. Doctype tags go above your head tag. There are 3 types of doctype tags. Strict, transitional and frameset.

If anything this short article is for reference. Its one for you t quickly pop allong and cut and paste from into your page. But then again there is little to explain about Doctypes. They have been around for a while although they were not required until the creation on XHTML 1.0. And now your page will also display differently depending on what Doctype you use now that they actually have meaning. So make sure you pick the correct one. If your page isn't XHTML complient then add in a HTML 4.1 Doctype. Although converting your page to XHTML is a much better option.

Strict
Strict is the hardest standard to compy with. If you add a strict doctype to your document, you cannot use many tags such as <font>. Very few websites use strict doctypes.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Transitional
This is the most commonly used doctype as it allows you to keep some of the old tags but still lets you move on to XHTML.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Frameset
This is for frameset pages (well pretty obvious really).

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Source: Worfolk Developers Library

Written by: Chris Worfolk - http://www.worfolk.biz
Posted: 8/2/2003