The 9 HTML Elements That Have an Attribute of the Same Name, or: The 9 Attributes That Have an Element of the Same Name
Published on Nov 20, 2023, filed under development, html. (Share this post, e.g. on Mastodon or on Bluesky.)
This is one of 180 articles that you can also read in an ebook: On Web Development II.
There are nine HTML elements that have an attribute of the same name:
abbr—andabbrattributecite—andciteattributedata—anddataattributeform—andformattributelabel—andlabelattributeslot—andslotattributespan—andspanattributestyle—andstyleattributetitle—andtitleattribute
(Nine! Before I dug into this, I would have bet there were fewer such pairings.)
That’s it—though if you’re into HTML factoids like this one, well, that makes us two! I ask about and share things like this in my little HTML quiz series on Mastodon—a series I’m turning into an HTML course. If you’re interested, follow along or get notified!
About Me
I’m Jens (long: Jens Oliver Meiert), and I’m an engineering lead, guerrilla philosopher, and indie publisher. I’ve worked as a technical lead and engineering manager for companies you use every day (like Google) and companies you’ve never heard of, I’m an occasional contributor to web standards (like HTML, CSS, WCAG), and I write and review books for O’Reilly and Frontend Dogma.
I love trying things, not only in web development and engineering management, but also with respect to politics and philosophy. Here on meiert.com I talk about some of my experiences and perspectives. (Please share feedback: Interpret charitably, but do be critical.)
