<!DOCTYPE>
|
DEFINITION
Specifies the version of html used in the document. <!DOCTYPE> is the first element within any html document. For the first time, <!DOCTYPE> is a required element for all html 3.2-compliant documents. |
ATTRIBUTES html PUBLIC "version name"
This required attribute must contain a proper and complete html version name. A list of proper version names can be found at:
http://www.w3.org/pub/WWW/Markup/Wilbur/html32.cat or http://www.webtechs.com/html-tk/src/lib/catalog |
CONTEXT <!DOCTYPE> is legal within the following markup tag: None, it must appear before the <html> tag. No additional markup can be used within <!DOCTYPE>. |
SUGGESTED STYLE/USAGE All documents should contain a <!DOCTYPE> declaration to aid browsers, validation tools, and other software in determining the version of html used in the document. |
EXAMPLES <!DOCTYPE html PUBLIC "-//W3C//DTD html 3.2//EN"> <html> <HEAD> <TITLE>Just an example</TITLE> </HEAD> <BODY> ....
</BODY> </html> |