+++
title = "XHTML is good, actually"
date = 2025-04-13
description = "In defense of a needlessly controversial document standard"
+++
About a month or two ago, I finally converted everything I run and currently maintain to XHTML 1.1.
I had been considering it for months and finally decided it was the right decision, and came to the
conclusion that XHTML is far better than HTML.
# An open web needs real standards
Unlike the SGML-based HTML, documents in XHTML must be valid. Browsers will let you get away with
some mild errors, but it's far less lenient than normal HTML. While this is one of the most common
things people criticize XHTML for, it's a good thing. Had everyone used XHTML and followed its
standards when it first came out, maybe we wouldn't have the browser monopoly we have today, or at
least not to such a severe extent. The web needs well-formed XML documents, not the sloppily thrown
together garbage HTML allows and borderline encourages. At the start, XHTML was designed with the
intention of fixing this, but many people kept clinging onto their shitty documents. Now so many
pages are still so annoying to parse that only a couple companies actually do it. XHTML could've
helped fix this.
XHTML tags must be properly closed, so it will not let you use `
` instead of `
`. XHTML
will not let you uppercase your elements and attributes, so you can't `
Here's a list of some things