Java script tutorial
The DOCTYPE definition specifies the document type:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
The rest of the document looks like HTML:
<html> <head> <title>simple document</title> </head> <body> <p>a simple paragraph</p> </body> </html>
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.
Validating an XHTML document's content involves checking its markup against a DTD and reporting markup errors.
There are currently 3 XHTML document types:
·
STRICT
·
TRANSITIONAL
·
FRAMESET
XHTML 1.0 specifies three XML document types that correspond to the three HTML 4.0 DTDs: Strict, Transitional, and Frameset.
XHTML 1.0 Strict
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
Use this when you want really clean markup, free of presentational clutter. Use this together with Cascading Style Sheets.
XHTML 1.0 Transitional
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
|
|
|