How many HTML elements are there?

Aaron A.
Apr 24, 2021

Here’s what I found.

Photo by Crissy Jarvis on Unsplash

Count

Short answer: 252 (April, 2021). 32 of which are “obsolete and deprecated.” So, 220.

Long answer: trick question, because HTML5 supports custom elements.

Longer answer: entire list here.

Definitions

HTML: Hypertext Markup Language provides the structure of the page.²

(HTML) Elements: The elements of the language label pieces of content such as “paragraph,” “list,” “table,” and so on.³

Methodology

A little Python and a lot of curiosity can go a long way:

--

--

Aaron A.

a reformed lawyer turned software engineer, in love with the internet.