Discussion Forums HTML, XML, JavaScript... |
 |
Software Reviews Editors,Others... |
 |
Top100 JavaScript Tutorials, ... |
 |
Tutorials ASP, CSS, Databases... |
Discussion List FAQ, Roundup, Configure ... |
 |
Authoring HTML, JavaScript, CSS... |
 |
Design Layout, Navigation,... |
 |
Graphics Tools, Colors, Images...
|
 |
Software Browsers, Editors, XML...
|
 |
Internet Domains, E-Commerce, ... |
 |
WDVL Resources Intermdiate, Tutorials,... |
 |
WDVL Discussion Lists, Top 100,... |
 |
| Technology Jobs |
 |
|
Document Type Declarations
The first part of an HTML document specifies which version of
HTML is used in the document.
The document type declaration
names the DTD used by the document (see
[GOLD90]).
There are three DTD's specified for use with HTML 4.0, one of which
must be included in the document. Each DTD varies in the elements
it supports.
-
HTML 4.0 Strict DTD
All elements and attributes that have not been
deprecated.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
-
HTML 4.0 Transitional DTD
Includes everything in the strict DTD as well as
deprecated elements and attributes. (Most of the deprecated
elements and attributes cover visual presentation.)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
-
HTML 4.0 Frameset DTD
Includes everything in the Transitional DTD as well as
frames
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/REC-html40/frameset.dtd">
DTDs and entity sets for HTML 4.0 supported by
W3C
HTML 4.01 Tags
|
|