Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the DOCTYPE line?
Message
From
21/04/2006 07:01:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/04/2006 02:44:27
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01115247
Message ID:
01115307
Views:
8
This message has been marked as the solution to the initial question of the thread.
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform