>Anyone can explain to me what is the purposeof the DOCTYPE line that appears at the top of an aspx file?
>
>Here is an example:
>
>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
From MSDN, MS XML3.0:
"DOCTYPE Declaration
The DOCTYPE declaration provides a space for a document to identify its root element and DTD by reference to an external file, through direct declarations, or both.
A DOCTYPE declaration can contain:
The name of the document or root element.
This is required if the DOCTYPE declaration is used.
SYSTEM and PUBLIC identifiers for the document type definition (DTD) that can be used to validate the document structure.
If a PUBLIC identifier is used, a SYSTEM identifier must also be present.
An internal subset of DTD declarations.
The internal subset appears between square brackets ([ ]).
A DOCTYPE declaration is mandatory if the document is to be processed in a validatingenvironment. To be valid, the DOCTYPE declaration must identify a DTD that corresponds to the document structure of the document. Non-validating parsers will accept documents without DOCTYPE declarations. ..."
Cetin