|
!DOCTYPE Element
Specifies the HTML
document type definition (DTD) to which the document corresponds.
Remarks
Different
versions of the DTD can be used depending on the level of compatibility
the author wants to indicate.
The !DOCTYPE
element does not require a closing tag.
This element is
available in HTML as of Microsoft® Internet Explorer 3.0.
Example
The first
example uses the !DOCTYPE element to indicate compatibility with
the HTML 3.2 DTD, while the second uses it to indicate a strict adherence
to the HTML 4.0 DTD.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
|