h1 tag used more than once | Sololearn: Learn to code for FREE!

+1

h1 tag used more than once

In the course example I found an h1 tag use more than once. Isn't it a bad practice? <article> <h1>Welcome</h1> <section> <h1>Heading</h1> <p>content or image</p> </section> </article>

2/3/2018 7:25:00 PM

Michael

3 Answers

New Answer

+8

Multiple <h1> elements are valid regarding Html5 rules, but good practice regarding semantical meaning is to use only one <h1> per html document for better SEO (search engine optimization) ^^

+5

It's not a bad practice at all. Since you are using articles and sections in a web page you can use h1 tag more than once in each sections and each articles.

+4

you can use h1 tag as many times as you need.....no limit