XHTML™ 2.0
W3C Working Draft 22 July 2004
This version:
http://www.w3.org/TR/2004/WD-xhtml2-20040722
Latest version:
http://www.w3.org/TR/xhtml2
Previous version:
http://www.w3.org/TR/2003/WD-xhtml2-20030506
Diff-marked version:
xhtml2-diff.html
Editors:
Jonny Axelsson, Opera Software
Beth Epperson, Netscape/AOL
Masayasu Ishikawa, W3C
Shane McCarron, Applied Testing and Technology
Ann Navarro, WebGeek, Inc.
Steven Pemberton, CWI (HTML Working Group Chair)
This document is also available in these non-normative formats: Single XHTML file [p.1] ,
PostScript version, PDF version, ZIP archive, and Gzip’d TAR archive.
Copyright ©2004 W3C
®
(MIT, ERCIM , Keio), All Rights Reserved. W3C liability, trademark,
document use and software licensing rules apply.
Abstract
XHTML 2 is a general-purpose markup language designed for representing documents for a
wide range of purposes across the World Wide Web. To this end it does not attempt to be all
things to all people, supplying every possible markup idiom, but to supply a generally useful set
of elements.
Status of This Document
This section describes the status of this document at the time of its publication. Other
documents may supersede this document. A list of current W3C publications and the latest
revision of this technical report can be found in the W3C technical reports index at
http://www.w3.org/TR/.
- 1 -
XHTML™ 2.0XHTML 2.0
This document is the sixth public Working Draft of this specification. It should in no way be
considered stable, and should not be normatively referenced for any purposes whatsoever. This
version includes an early implementation of XHTML 2.0 in RELAX NG [RELAXNG [p.225] ], but
does not include the implementations in DTD or XML Schema form. Those will be included in
subsequent versions, once the content of this language stabilizes. This version also does not
address the issues revolving around the use of [XLINK [p.227] ] by XHTML 2.0. Those issues
are being worked independent of the evolution of this specification. Those issues should, of
course, be resolved as quickly as possible, and the resolution will be reflected in a future draft.
Finally, the Working Group is actively working to resolve many of the issues that have been
submitted by the public, but not all of them have been addressed yet. If your particular issue has
not yet been addressed, please be patient - there are many issues, and some are more complex
than others.
Formal issues and error reports on this specification shall be submitted to
www-html-editor@w3.org (archive). It is inappropriate to send discussion email to this address.
Public discussion may take place on www-html@w3.org (archive). To subscribe send an email
to www-html-request@w3.org with the word subscribe in the subject line.
This document has been produced by the W3C HTML Working Group (members only) as part of
the W3C HTML Activity. The goals of the HTML Working Group are discussed in the HTML
Working Group charter.
This document was produced under the 24 January 2002 CPP as amended by the W3C Patent
Policy Transition Procedure. The Working Group maintains a public list of patent disclosures
relevant to this document; that page also includes instructions for disclosing a patent. An
individual who has actual knowledge of a patent which the individual believes contains Essential
Claim(s) with respect to this specification should disclose the information in accordance with
section 6 of the W3C Patent Policy.
Publication as a Working Draft does not imply endorsement by the W3C Membership. This is a
draft document and may be updated, replaced or obsoleted by other documents at any time. It is
inappropriate to cite this document as other than "work in progress."
Quick Table of Contents
1. Introduction
................ 152. Terms and Definitions
3. Conformance Definition
.............. 234. The XHTML 2.0 Document Type
.............. 255. Module Definition Conventions
............... 296. XHTML Attribute Collections
............... 317. XHTML Document Module
............... 358. XHTML Structural Module
................. 459. XHTML Text Module
............... 5310. XHTML Hypertext Module
................. 5511. XHTML List Module
- 2 -
XHTML 2.0Quick Table of Contents
.............. 6112. XHTML Core Attributes Module
............. 6313. XHTML Hypertext Attributes Module
.............. 6914. XHTML I18N Attribute Module
........... 7115. XHTML Bi-directional Text Attribute Module
.............. 7316. XHTML Edit Attributes Module
............ 7517. XHTML Embedding Attributes Module
............ 7718. XHTML Image Map Attributes Module
........... 8119. XHTML Metainformation Attributes Module
............. 8720. XHTML Metainformation Module
................ 9721. XHTML Object Module
.................. 10922. Ruby Module
............... 11123. XHTML Scripting Module
.............. 11524. XHTML Style Attribute Module
............... 11725. XHTML Style Sheet Module
................ 12126. XHTML Tables Module
.................. 14527. XForms Module
................. 14728. XML Events Module
............... 149A. Changes from XHTML 1.1
............. 151B. XHTML 2.0 RELAX NG Definition
........... 155C. XHTML RELAX NG Module Implementations
................. 205D. XHTML 2.0 Schema
........... 207E. XHTML Schema Module Implementations
............ 209F. XHTML 2.0 Document Type Definition
............ 211G. XHTML DTD Module Implementations
................ 213H. Stylesheet for XHTML 2
.................. 219I. List of Elements
.................. 221J. List of Attributes
................ 223K. Cross-reference Index
................... 225L. References
................. 229M. Acknowledgements
List of Issues
1. [PR #7336] Identifying XHTML version in ansence of DTDs
2. [PR #7442] xml:id
3. Need a normative definition for the version attribute
4. [PR #6554] [XHTML2] Comments on WD 5: make white space preservation part of the
standard values for the code and kbd elements?
5. [PR #7642] Efficient param’s
6. [PR #634] Fw: Character entities in HTML and MathML
7. [PR #670] Entity management: do we still need it?
8. [PR #671] Character entities: do we still need them?
- 3 -
List of IssuesXHTML 2.0
Full Table of Contents
1. Introduction
1.1. What is XHTML 2?
1.1.1. Design Aims
1.1.2. Backwards compatibility
1.1.3. XHTML 2 and Presentation
1.1.4. XHTML 2 and Linking
1.2. Major Differences with XHTML 1
1.3. What are the XHTML 2 Modules?
................ 152. Terms and Definitions
3. Conformance Definition
3.1. Document Conformance
3.1.1. Strictly Conforming Documents
3.2. XHTML Family User Agent Conformance
.............. 234. The XHTML 2.0 Document Type
................... 244.1. Issues
.............. 255. Module Definition Conventions
................ 255.1. Module Structure
............. 255.2. Abstract Module Definitions
............... 255.3. Syntactic Conventions
................. 265.4. Content Types
................. 275.5. Attribute Types
............... 296. XHTML Attribute Collections
................... 306.1. Issues
............... 317. XHTML Document Module
................ 317.1. The html element
................ 327.2. The head element
................ 327.3. The title element
................ 337.4. The body element
............... 358. XHTML Structural Module
............... 378.1. The address element
.............. 378.2. The blockcode element
.............. 388.3. The blockquote element
................ 388.4. The div element
............... 398.5. The heading elements
................. 408.6. The p element
................ 418.7. The pre element
............... 428.8. The section element
............... 428.9. The separator element
................. 459. XHTML Text Module
................ 469.1. The abbr element
................ 469.2. The cite element
- 4 -
XHTML 2.0Full Table of Contents
................ 479.3. The code element
................ 479.4. The dfn element
................ 479.5. The em element
................ 489.6. The kbd element
................. 489.7. The l element
................ 499.8. The quote element
................ 499.9. The samp element
............... 509.10. The span element
............... 509.11. The strong element
................ 509.12. The sub element
................ 519.13. The sup element
................ 519.14. The var element
.................. 529.15. Issues
............... 5310. XHTML Hypertext Module
................. 5310.1. The a element
................. 5511. XHTML List Module
......... 5711.1. Definition lists: the dl, di, dt, and dd elements
................ 5811.2. The nl element
.............. 5811.3. The ol, and ul elements
................ 5911.4. The li element
................ 5911.5. The label element
.............. 6112. XHTML Core Attributes Module
.............. 6112.1. Core Attribute Collection
............. 6313. XHTML Hypertext Attributes Module
............. 6313.1. Hypertext Attribute Collection
.............. 6914. XHTML I18N Attribute Module
.............. 6914.1. I18N Attribute Collection
........... 7115. XHTML Bi-directional Text Attribute Module
............. 7115.1. Bi-directional Text Collection
......... 7115.1.1. Inheritance of text direction information
........ 7215.1.2. The effect of style sheets on bidirectionality
....... 7115.1.3. 15.1.1. Inheritance of text direction information
...... 7215.1.4. 15.1.2. The effect of style sheets on bidirectionality
.............. 7316. XHTML Edit Attributes Module
................. 7316.1. Edit Collection
............ 7517. XHTML Embedding Attributes Module
............ 7517.1. Embedding Attribute Collection
............ 7718. XHTML Image Map Attributes Module
............ 7718.1. Image Map Attribute Collection
........... 8119. XHTML Metainformation Attributes Module
............. 8119.1. Metadata Attribute Collection
................. 8419.2. Properties
.............. 8519.3. Mapping Lexical Content
- 5 -
Full Table of ContentsXHTML 2.0