XHTML 1.0
Flavors of XHTML 1.0
- Strict
- Transitional
- Frameset
Two Ways to Serve XHTML 1.0
- As
text/html
- As
application/xhtml+xml
The latter has been the source of some controversy. Pitfalls include:
- Many browsers still can't handle content served this way.
- If your document is ill-formed, chances are it won't display at all. (Herein lies an anti-XHTML argument.)
- Other considerations having to do with XML… See session on XML.
Global Structure of XHTML 1.0
- XML Processing Directive (recommended but not required for XHTML 1.0)
- DOCTYPE Declaration
<html>
element (includes<head>
and<body>
elements)