Français

Which HTML element should I use?

Table of contents

129 HTML, SVG and MathML elements usable in the body

HTML, SVG and MathML total 129 usable elements between the <body> tags. Most projects use about ten of them, and fill the rest with <div>s.

It's not about laziness. It's about visibility. You don't pick an element you don't know about. And you don't look for an element when you don't know it exists.

This page flips the approach. Instead of listing elements and explaining what they do, it starts from what you want to do, your intent, and shows you the element that fits.

Each intent links to a dedicated micro-article: what it is, when to use it, what you gain in accessibility, SEO and GEO, a code example, and links to the specs.

Start from the nature of your content

Page structure12
Running text10
Citations and references4
Code and technical data8
Markup and annotations13
Lists and grouped data4
Links, buttons and interactions7
Forms7
Media9
Tables6
SVG, Graphics and illustrations8
MathML, Mathematical formulas8

Why this approach

The question "which element should I use?" is the question nobody asks: <div> is always there to fill the gap. But every <div> placed instead of a semantic element costs accessibility, performance, SEO and GEO.

Semantics isn't a luxury. It's the foundation that screen readers, search engines and LLMs rely on when they choose their sources.

These elements exist for a reason. This page helps you find the right one.

At the time of writing, <selectedcontent>, <fencedframe> and <geolocation> are still experimental and don't appear in the mind map. The count will rise once they reach Baseline.

Download the mind map

Want to pin it to your desk, print it, or share it with your team? Download the full poster version.