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.
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
Title: Image with quoted attributes | Date: 2026-10-25
Performs as expected: ✓ Yes — all attribute values are quoted and the tag is self-closed.
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
Title: Boolean attributes written in full | Date: 2026-10-25
Performs as expected: ✓ Yes — checked="checked" and selected="selected" are the required expanded forms.
Title: Named destination | Date: 2026-10-25
This paragraph is a link target, identified with id.
Performs as expected: ✓ Yes — XHTML uses id; the old name attribute on anchors is deprecated.
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.