Is that exemple of HTML code right? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is that exemple of HTML code right?

In that exemple author used h1 heading tag twice. Is that appropirate use of tags? In other words, should we set only one h1 tag per page for SEO reasons?

12th Dec 2016, 7:37 AM
Radosław Roszkowski
Radosław Roszkowski - avatar
2 Answers
+ 1
You can use h1 as many times as you want. You can put one inside another only if you use different css style id
12th Dec 2016, 8:13 AM
Andrey Kitsa
Andrey Kitsa - avatar
0
Well, I should say, there are many diffrence suggest to HTML pages. Some for "purity" code, others for quick access, others for SEO (but here are much tricks, how to get better results..). It is your decision what to observe..
12th Dec 2016, 9:39 AM
Petr Hatina
Petr Hatina - avatar