|
|
HTML <!DOCTYPE> tagSyntax<!DOCTYPE> Definition and UsageThe <!DOCTYPE> declaration is the very first thing in your document, before the <html> tag. This tag tells the browser which HTML or XHTML specification the document uses. HTMLHTML 4.01 specifies three document types: Strict, Transitional, and Frameset. HTML Strict DTDUse this when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS):
HTML Transitional DTDThe Transitional DTD includes presentation attributes and elements that W3C expects to move to a style sheet. Use this when you need to use HTML's presentational features because your readers don't have browsers that support Cascading Style Sheets (CSS):
Frameset DTDThe Frameset DTD should be used for documents with frames. The Frameset DTD is equal to the Transitional DTD except for the frameset element replaces the body element:
XHTMLXHTML 1.0 specifies three XML document types: Strict, Transitional, and Frameset. XHTML Strict DTDUse this DTD when you want clean markup, free of presentational clutter. Use this together with Cascading Style Sheets (CSS):
XHTML Transitional DTDUse this DTD when you need to use XHTML's presentational features because your readers don't have browsers that support Cascading Style Sheets (CSS):
XHTML Frameset DTDUse this DTD when you want to use frames!
To check that you have written a valid XHTML document with a correct DTD, you can link your XHTML page to an XHTML validator. Attributes: NONE |
|
Copyright © 2005-8 Sunilcare.
All Rights Reserved. |