HTML Attribute Value Quotes Are Optional Again?

Jason Knight
CodeX
Published in
4 min readJan 17, 2023

--

Photo by Jackson Sophat on Unsplash

There have been a lot of changes to HTML the past decade or so. Some for the better, some not. There are some I take major issue with like making TFOOT before TBODY invalid, since that kind of defeats the point of TFOOT. Aka being efficient when printing since THEAD and TFOOT are supposed to be at the top and bottom of every page. Allowing outdate rubbish none of us has any business using like EMBED back into the spec? Utter stupid. Tags like HGROUP which initially showed the WhatWG didn’t know enough HTML to make 4 Strict’s successor… and that is back today in a better format, but is redundant to HEADER!

In a way it feels like a lot of HTML practices are being dragged back to the worst of the 1990’s. Those of you who follow me know that I’m always saying that about HTML/CSS frameworks which use classes to replicate everything that was wrong with presentational tags and attributes in HTML 3.2. Half-tweet idiocy like Bootcrap and Bailwind being monuments to 1997 development practices.

So I can’t say that attribute quotes being back to optional as if it’s the mid ‘90’s again is a surprise. It’s not like browsers actually care, and the only time you actually NEED the quotes is for special characters and whitespace.

So What Exactly Does This Mean?

--

--

Jason Knight
CodeX

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse