Specifies the Document Type Definition (DTD) to which the document conforms.
Specifies the top-level element type declared in the DTD. This corresponds to the Standard Generalized Markup Language (SGML) document type being declared.
Specifies whether the formal public identifier (FPI) is a publicly accessible object or a system resource.
|PUBLIC||Default. Publicly accessible object.|
|SYSTEM||System resource, such as a local file or URL.|
Specifies whether the organization is registered by the International Organization for Standardization (ISO).
|+||Default. Organization name is registered.|
Specifies a unique label indicating the name of the entity or organization responsible for the creation and maintenance of the DTD being referenced by the !DOCTYPE declaration—the OwnerID.
Specifies the public text class, the type of object being referenced.
Specifies the public text description, a unique descriptive name for the public text being referenced. Can be appended with the version number of the public text.
Specifies the document type definition.
|Strict||Excludes the presentation attributes and elements that the W3C expects to phase out as support for style sheets matures.|
|Transitional||Contains everything except frameSet elements.|
Specifies the public text language, the natural language encoding system used in the creation of the referenced object. It is written as an ISO 639 language code (uppercase, two letters).
|EN||Default. English language.|
Specifies the location of the referenced object.
This declaration must occur at the beginning of the document, before the html tag.
The !DOCTYPE element does not require a closing tag.
<!DOCTYPE html public "-//W3C//DTD HTML 4.0//en"> <!DOCTYPE html public "-//W3C//DTD HTML 4.0 Strict//en">
<!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//en"> <!DOCTYPE html public "-//W3C//DTD HTML 4.0 Transitional//en" "http://www.w3.org/TR/html4/loose.dtd">