You can use as many h1
, h2
and others as often as you like.
It takes into account that the semantic function is to emphasize the content of this piece / tag. Whether in terms of visual or SEO (Google indexing for example). So you must manage and use these tags with care, sense of organization. But you can use it as often as you like.
In the W3C specifications > you can see this example, with multiple h1
:
<body>
<h1>Apples</h1>
<p>Apples are fruit.</p>
<section>
<h1>Taste</h1>
<p>They taste lovely.</p>
<section>
<h1>Sweet</h1>
<p>Red apples are sweeter than green ones.</p>
</section>
</section>
<section>
<h1>Color</h1>
<p>Apples come in various colors.</p>
</section>
</body>
There are tags that can only be used once per page. Among these are html
, head
, base
, title
and body
.