Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
H1 H2 H3 Tags etc...
I always thought there was an additional reason for using H1, H2 tags etc. I thought they also indicate a hierchary of importance that search bots / crawlers use for SEO rankings and searchability.
Is this still true, or am I wrong? If it is true, shouldn't we be using H1 tags for all titles?
Wouldn't changing changing H2 to H3 change their level of importance even though it's the exact same data?
Shelby Rice5,468 Points
Yes, it is true that header tags are generally used to indicate hierarchy within webpages and that many popular search engines take header tags into account when they are crawling webpages. However, the H1 tag is unique in that it is common practice to use it once per page for the page-specific title. Some SEO tools will even complain if they see 0 or more than 1 H1 tag. The H2, H3, and subsequent header tags have significantly less of an impact on SEO rankings and can therefore be used more freely than the H1 tag.
Switching between H2 and H3 tags would ideally mean that there is a change in level of importance, but arguably their level of impact on SEO is negligible enough to be used more flexibly from a design standpoint. Still, it is better practice to treat the headers as an hierarchy because it typically leads to more consistent and readable designs for both visitors to a site and coders.
Frank Starr7,680 Points
@Shelby Rice .... Thanks so much for the explanation. Very well explained. Now I understand better.