Please visit our sponsors !
The <!doctype> tag
Definition and Usage
The <!doctype> declaration should be the very first thing in your HTML
document, before any other element. This tag tells the browser which HTML
specification the document uses.
In HTML 4.0 you can choose between 3 Document Type Definitions (DTD):
Strict DTD
The Strict DTD excludes the presentation attributes and elements that
W3C expects to move to a style sheet. If you need to include presentation
attributes in your page you can use the Transitional DTD.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
|
Transitional DTD
The Transitional DTD includes presentation attributes and elements that
W3C expects to move to a style sheet.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
Frameset DTD
The Frameset DTD should be used for documents with frames. This DTD is
identical to the Transitional DTD except for: in frameset documents, the
frameset element replaces the body element.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> |
Attributes: NONE
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|