|
<!DOCTYPE ...>| Usage Recommendation |
|---|
| Use this tag if you want to use an SGML/HTML validator. Otherwise, this tag is of little use. |
The <!DOCTYPE ...><!DOCTYPE ...><!DOCTYPE ...>
The necessity of <!DOCTYPE ...><!DOCTYPE ...><!DOCTYPE ...>
However, <!DOCTYPE ...><!DOCTYPE ...><!DOCTYPE ...><!DOCTYPE ...>
This is the <!DOCTYPE ...>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
For HTML 4.0, the situation is a little more complicated. There are three standard doctypes. The DTD for documents that strictly conform (don't use any deprecated markup) and that aren't frameset documents, use this <!DOCTYPE ...>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
For a not quite so strict conformance (uses some of the deprecated markup such as <CENTER ...><!DOCTYPE ...>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
Finally, for documents which are frameset documents (the "top" document in a framed page), use this <!DOCTYPE ...>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.