Hixie on XHTML
10th September 2002
Ian Hickson: Sending XHTML as text/html Considered Harmful. Ian makes an excellent case for sticking with HTML 4.01 rather than upgrading to XHTML. Here’s the killer point (at least for me):
Document sent as text/html are handled as tag soup  by most UAs. This means that authors are not checking for validity, and thus most XHTML documents on the web now are invalid. Therefore the main advantage of using XHTML, that it has to be valid, is lost of the document is then sent as text/html.
XHTML documents that are not well-formed XML are useless, and since browsers still display them the web is potentially being polluted with invalid (and useless) XHTML documents. Ian also makes the point that, while the greatest benefit of XHTML is that it can be processed by XML parsers, the only people likely to take advantage of this ability are the content authors themselves who will most likely be using configurable tools to produce the content anyway.
So why haven’t I switched this blog back to HTML 4.01 yet? It’s a good question, and one which I will attempt to answer in the not too distant future.
More recent articles
- llamafile is the new best way to run a LLM on your own computer - 29th November 2023
- Prompt injection explained, November 2023 edition - 27th November 2023
- I'm on the Newsroom Robots podcast, with thoughts on the OpenAI board - 25th November 2023
- Weeknotes: DevDay, GitHub Universe, OpenAI chaos - 22nd November 2023
- Deciphering clues in a news article to understand how it was reported - 22nd November 2023
- Exploring GPTs: ChatGPT in a trench coat? - 15th November 2023
- Financial sustainability for open source projects at GitHub Universe - 10th November 2023
- ospeak: a CLI tool for speaking text in the terminal via OpenAI - 7th November 2023
- DALL-E 3, GPT4All, PMTiles, sqlite-migrate, datasette-edit-schema - 30th October 2023
- Now add a walrus: Prompt engineering in DALL-E 3 - 26th October 2023