DEV Community

Cover image for HTML tags | h1-h6
Carlos Espada
Carlos Espada

Posted on • Edited on

4

HTML tags | h1-h6

They are used to create headings in the document, with the <h1> being the most important and the <h6> being the least. You do not have to use them thinking about how they look, but control the design with CSS.

Elements cannot be skipped (<h1>-<h2>-<h4>) and there can only be one <h1> per document.

As there is no actual implementation of the outline algorithm or forecast of it in any browser or assistive technology, it is better to use them in descending order, as always, instead of nesting <h1> inside <section> or <article>.

It is the main tool to discover information using assistive technologies, so it is very important to take care of them so that the page is accessible.

  • Type: block
  • Self-closing: No
  • Semantic value: No

Definition and example | Support

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

If you found this post useful, please drop a ❤️ or leave a kind comment!

Okay