How many HTML elements are there?

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:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aaron A.

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