Is it possible to create html tags h7, h8, h9 and so on

user3380148 picture user3380148 · Mar 25, 2014 · Viewed 50.3k times · Source

Here's a novice question. Is it possible to create more heading styles like h7, h8, and so on. I am just wondering if it possible to have more than 6 different types of headings on a website.

Answer

somebodysomewhere picture somebodysomewhere · Mar 25, 2014

The HTML spec defines 6 headings. Browsers recognize 6 headings. If you start using <h7> and so on, then you'll be using an invalid element.

If you find yourself needing an <h7> then you should probably take a look at how you're structuring your site. Not every single title deserves a heading element.