HTML Tag: DOCTYPE

DOCTYPE Document Type: specifies HTML version.
With HTML 4.01 there are three document types:
Strict, Transitional, Frameset.
HTML 2
Example(s):
<!doctype HTML PUBLIC "-//IETF//DTD HTML 2//EN">
<!doctype HTML PUBLIC "-//IETF//DTD HTML 3.2 Final//EN">

Strict: Use for clean markup, free of transitional clutter; use with CSS.
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.2//EN">

Transitional: Includes elements that W3C expects to move to a style sheet.
Use with browsers that do not support CSS.

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Frameset: Used for documents with FRAMESETs.
same as Transitional except FRAMESET element rplaces the BODY element.

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">

© 2007 Prem Sobel. All Rights Reserved.