h1 tag used more than once | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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>

3rd Feb 2018, 7:25 PM
Michael
3 Answers
+ 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) ^^
3rd Feb 2018, 10:16 PM
visph
visph - avatar
+ 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.
3rd Feb 2018, 7:41 PM
Pravin Pandey
Pravin Pandey - avatar
+ 4
you can use h1 tag as many times as you need.....no limit
3rd Feb 2018, 9:06 PM
Muhammad Shahbaz
Muhammad Shahbaz - avatar