Question - What's XHTML DTD?
Answer -
The XHTML standard defines three Document Type Definitions.
The most common is the XHTML Transitional.
The Is Mandatory
An XHTML document consists of three main parts:
* the DOCTYPE
* the Head
* the Body
The basic document structure is:
...
...
The DOCTYPE declaration should always be the first line in an XHTML document.
An XHTML Example
This is a simple (minimal) XHTML document:
simple document
a simple paragraph
The DOCTYPE declaration defines the document type:
The rest of the document looks like HTML:
simple document
a simple paragraph
The 3 Document Type Definitions
* DTD specifies the syntax of a web page in SGML.
* DTD is used by SGML applications, such as HTML, to specify rules that apply to the markup of documents of a particular type, including a set of element and entity declarations.
* XHTML is specified in an SGML document type definition or 'DTD'.
* An XHTML DTD describes in precise, computer-readable language, the allowed syntax and grammar of XHTML markup.
There are currently 3 XHTML document types:
* STRICT
* TRANSITIONAL
* FRAMESET
XHTML 1.0 specifies three XML document types that correspond to three DTDs: Strict, Transitional, and Frameset.<