Jens Oliver Meiert

Use my latest work: latest tech book · latest non-tech book · latest optimization tool · latest defense tool

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 , . (Share this post, e.g., on Mastodon.)

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:

  1. abbr—and abbr attribute
  2. cite—and cite attribute
  3. data—and data attribute
  4. form—and form attribute
  5. label—and label attribute
  6. slot—and slot attribute
  7. span—and span attribute
  8. style—and style attribute
  9. title—and title attribute

(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

Portrait sketch of Jens Oliver Meiert.

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 manager at various companies (e.g., Google); I’m an active web and tool developer (code optimization, digital defense), a contributor to web standards (like HTML, CSS, WCAG), and a book author (O’Reilly, dxsrc). You’ll like my work if you value pragmatic, proactive problem-solvers. Let’s connect.