XHTML 1.0 (2000) — Use-Case Demonstration

Date: 2026-10-25

XHTML 1.0 is HTML 4.01 reformulated as well-formed XML. The element set is the same; what changes are the syntax rules. Each example demonstrates a rule and states whether it performs as expected in a modern browser: ✓ Yes, or ✗ No.


Use case 1 — Self-closing empty elements

Title: XML-style void tags  |  Date: 2026-10-25

A line break
and a horizontal rule follow:


Empty elements must be closed with /> in XHTML.

Performs as expected: ✓ Yes


Use case 2 — Self-closed image

Title: Image with quoted attributes  |  Date: 2026-10-25

W3C logo

Performs as expected: ✓ Yes — all attribute values are quoted and the tag is self-closed.


Use case 3 — Lowercase element and attribute names

Title: Case sensitivity  |  Date: 2026-10-25

In XHTML every tag and attribute name is lowercase — <P> must be written <p>.

Performs as expected: ✓ Yes


Use case 4 — Fully-expanded (no minimized) attributes

Title: Boolean attributes written in full  |  Date: 2026-10-25

Performs as expected: ✓ Yes — checked="checked" and selected="selected" are the required expanded forms.


Use case 5 — Fragment identifier via id (not name)

Title: Named destination  |  Date: 2026-10-25

This paragraph is a link target, identified with id.

Jump to it.

Performs as expected: ✓ Yes — XHTML uses id; the old name attribute on anchors is deprecated.


Use case 6 — Well-formed strict nesting

Title: Properly nested inline markup  |  Date: 2026-10-25

Text with bold and bold-italic that is strictly nested and closed.

Performs as expected: ✓ Yes


Summary: Every XHTML 1.0 syntax rule — self-closed void elements, quoted attributes, lowercase names, expanded boolean attributes, id fragments, strict nesting — is honoured here and renders as expected. XHTML 1.0 added no new elements over HTML 4.01; only the authoring discipline is stricter.