How Many HTML Tags Are There? 

how many HTML tags are there

HTML is quite an essential part of creating a website. You must have seen the multiple tags on the page, but have you ever wondered– how many HTML tags are there? This article will tell you how many!

According to the official HTML website, there are about 132 total tags in HTML tags. Every single tag has a different feature and a function to perform. They are all different from each other. These tags help us with building the structure of the website or application. 

Please keep reading to understand and learn these tags and what they are in charge of doing. At the end of the article, you will leave with some extra or even stronger knowledge in the markup language– HTML.

To learn more about HTML, check:

HTML Tags: An Introduction

Think of these tags as LEGO blocks used to build a webpage. Like every block has a separate purpose, every tag has a distinct purpose. Yes, most of these tags come in pairs: one at the beginning of the command you want to put in and one at the end of the command.

These are the three types of elements:

  1. Inline-block

  2. Block-level

  3. Inline elements

Visit: HTML Tags: An Introduction

Heading Tags: How Many Of Them Are There in HTML?

This is the easiest tag to remember and to use. It works in a hierarchy— just like Google Docs, it goes from H1, H2, H3… H6. There are exactly 6 heading tags in the markup language.

This is how you write them— <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>

In terms of importance, headings are selected. H1 will be the most important heading, and H6 will be the least and the smallest in size. 

HTML Tag Elements: Block-level

How many HTML tags are there for block elements? Seven is the total number of tags in HTML for Block-level elements.

What Are The Different Block Elements?

  1. <div>
  2. <p>
  3. <h1> to <h6>
  4. <ol>
  5. <ul>
  6. <li>
  7. <table>

Block elements are used to make the content in different blocks. These seven block elements individually create different blocks of content. All these blocks build up a whole new skeleton structure. Think of this one as stacking jenga blocks made out of LEGO pieces.


You need these pieces to build and make a whole tower of content, and you can design it there. A simple example would be <h1>, and </h1> is one Lego block, and it’s used to stack at the top as the heading.

HTML Tag Elements: Inline

How many HTML tags are there for Inline elements? For Inline elements, there are 7 Inline HTML tags.

What Are The Different Inline Elements?

  1. <span>
  2. <a>
  3. <img>
  4. <em>
  5. <strong>
  6. <br>
  7. <input>

Unlike block elements, inline elements are unlike Jenga blocks stacked to make a structure. They are used within a single line already there in the block. They do not make line breaks by being present but set the width of it.

The more content they have, the wider the Inline elements will be. <strong>, <a>, and <img> are some of the most common inline elements that are used.

HTML Tag Elements: Inline-block

How many HTML tags are there for Inline-block elements? There are three Inline-block elements as HTML tags.

What Are The Different Inline-block Elements?

  1. <button>
  2. <select>
  3. <textarea>

As the combined name suggests, Inline-block elements combine the Block and the inline elements that are divisions under the HTML tags. They are technically inline elements but capable of being like block elements and creating blocks.

They can change their height and width according to the given preferences.

What Are The Other Tags?

We only looked at some HTML tags, but more are similarly classified into these. Let us look at more short examples of these tags.

  • Main Root
  • Sectioning Root
  • Content sectioning
  • Text Content
  • Metadata

The Main Root

It has only one, the <html>, representing the HTML file.

The Sectioning Root

This has one tag, which is <body>. This tag is a block element tag that helps with the structure of the HTML. 

Content Sectioning Tags in HTML

  1. The first is <address>, which includes all the essential information about the people owning the website or their contact numbers.
  2. The next one is <article>. This tag defines an individual content that is independent inside the content itself.
  3. Third is <aside>. This describes the content that is not directly aligned with the main content.
  4. The <footer> tag is just like the page number section of every document.
  5. The introduction or the title of the content is the <header>

The Text Content

  1. The <dd> tag marks the content that is before it.
  2. The <dt> tag is another element that shows a term on the screen inside a list, also known as the description list.
  3. Think of this tag <div> as a box that stores different ingredients in your fridge. It similarly has an additional box for every content to separate it.
  4. The <figcaption> tag is technically a caption for a figure. The caption describes the figure.


  1. The <base> tag holds all the relevant URLs, including the HTML document’s base URL.
  2. <link>is a tag that defines the relation between the HTML file and an external document such as a CSS file. A CSS file is used for the looks of the HTML page.
  3. <meta> – provides HTML file information that other elements cannot explain.
  4. The <style> tag has content connecting it to one or more external CSS files.


How many h1 tags are there in HTML?

Only one h1 tag in HTML is placed at the top of the hierarchy of Heading tags. The rest of the heading tags are and. There are a total of 6 heading tags in HTML.

What are the main tags used in the language?

The main tags used in HTML are the HTML, title, head, and body. Without these tags, the HTML language will not work.

What are the different kinds of HTML?

Strict, frameset, and transitional, these three HTML types are different and are used for other purposes. They are the only variants of HTML.

What is an empty tag?

A tag that does not have a pair to close it with. They are used only for opening purposes. They do not have a closing tag, for example, and. This is an example of a non-empty tag.


This article covered how many tags are there in HTML. A few of the 142 tags are essential for the language to run. Keep reading for more.

See Also: How To Disable HTML5 YouTube In Chrome?