Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it alright to use multiple h1 tags on the same page, but style them differently?

Tags:

html

css

seo

I have a webpage that I use h1 tags multiple times within various DIVs and I style h1 for each div to be the appropriate size.

For example...

#content h1 {   font-size:22px; }  #left-nav h1 {   font-size:14px; }  #content .recent-news h1 {   font-size:16px; } 

Is this alright? I am worried about SEO.

What is the best way to go about this? Or am I worrying about nothing?

like image 656
Brad Avatar asked Feb 02 '09 17:02

Brad


People also ask

Should you only have one H1 on a page?

“You can use H1 tags as often as you want on a page. There's no limit, neither upper or lower bound. Your site is going to rank perfectly fine with no H1 tags or with five H1 tags.” Google has even published a video on this specific topic to dispel the idea that Google recommends only one H1.

How many H1 tags can be used in a page post?

Use an H1 tag on every important page. Use only one H1 per page.

How many H1 tags should any particular page on a site have?

Among them: You should use lots of keyword-loaded H1 tags to rank higher for specific keywords. You should only have one H1 tag per webpage or Google will punish you.

Should H1 be unique?

Absolutely! All of your web pages should have unique page headings because every page should contain unique content. Make sure your H1 explains directly what the page is all about.


2 Answers

Matt Cutts from Google answered to More than one H1 on a page: good or bad? (Mar 5, 2009) with:

Well, if there's a logical reason to have multiple sections, it's not so bad to have, you know multiple h1s. I would pay attention to overdoing it. If your entire page is h1, that looks pretty Creti, right? So don't do all h1 and then you CSS to make it look like regular text because we see people, who are competitors complain about that if users ever turn off CSS or the CSS doesn't load, it looks really bad. So, you know, it's ok to have a little bit of h1 here and then maybe there's two sections on a page, and so maybe have a little bit of h1 here.

But you really should use it for headers or headings, which is what the intent is. Not to just throw h1 everywhere you can on a page. Because I can tell you, if you just throw h1 everywhere on a page, people have tried to abuse that and so our algorithms try to take that into account so it doesn't really do you that much good. So I would use it where it makes sense and more sparingly, but you can have it multiple times.

like image 196
Joel Avatar answered Sep 24 '22 01:09

Joel


Just remember that your h1s are used to indicate context, not layout. So, there's nothing inherently wrong with having several on a page.

In this specific example, you need to decide if your left-nav h1s have the same contextual importance as your content h1s and your recent-news h1s. If a clear hierarchy exists in your mind, use your header tags to demonstrate it.

like image 39
Yes - that Jake. Avatar answered Sep 21 '22 01:09

Yes - that Jake.