Introduction To The XHTML 1.0 Extensible Markup Language

XHTML is the reformulation of HTML as an application of XML
If you are familiar with html 4 you should have no problems with learning XHTML. It is the first step towards modularization based on the xml model. It provides the bridge for web designers to enter the web of the future, while maintaining compliance with today's browsers. It looks very much like html 4, with a few notable exceptions.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title> Example </title>

</head>

<body>

<h1> Example </h1>

<a href="http://validator.w3.org/check/referer">
<img src="http://validator.w3.org/images/vxhtml10" height="31" width="88" alt="Valid XHTML 1.0!" />
</a>

<p> This is well formed xhtml 1.0 </p>

</body>
</html>

Document Type Definitions

One of the first things you should notice in the above example is the (DTD) Doc Type Declaration. When an XHTML document is created, the DTD to which it conforms is declared in a Document Type Declaration at the top of the document. Each DTD may be recognized by a unique label called a formal public identifier, or FPI. The literal (ie., quoted) text following the word "PUBLIC" is an FPI referring to the W3C's XHTML 1.0 DTD. XHTML 1.0 specifies three XML document types that correspond to the three HTML 4.0 DTD's: Strict, Transitional, and Frameset.

XHTML 1.0 Strict

<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"

Use this when you want really clean markup, free of presentational clutter and add a Cascading Style Sheet to control your presentation.

XHTML 1.0 Transitional
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">

Use this when you need to take advantage of HTML's presentational features if you are concerned that your viewers may not have the latest browsers that understand Cascading Style Sheets.

XHTML 1.0 Frameset
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">

Use this when you want to use Frames to partition the browser window into two or more frames.

continue... part ii - xhtml tag structure

HAVE QUESTIONS?

XHTML pg 1 | XHTML pg 2 | CSS pg 1 | CSS pg 2 | CSS Templates