A limit for heading elements in HTML 5


#1

i want to ask a question:
Is there a limit for heading elements in HTML 5 like can we use and so on as we wish ?
Waiting for a positive feedback


Welcome to our forums! Please Introduce Yourself
#2

Yes, h1 thru h6. Semantically there is a heirarchy, much like an essay outline. Well formed documents respect this heirarchy along the lines of what is known as the 'outline model' for document structure.

Two common errors made by learners:

  1. Using headings for their built in style properties.
  2. Bumping the importance of a heading by giving it a higher level.

This is an area that deserves some extra reading concerning W3C specifications and recommendations, writing well formed HTML, accessibility and standards.