Is it alright to use multiple h1 tags on the same page, but style them differently?
Solution 1:
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
h1
s. I would pay attention to overdoing it. If your entire page ish1
, that looks pretty Creti, right? So don't do allh1
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 ofh1
here and then maybe there's two sections on a page, and so maybe have a little bit ofh1
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 throwh1
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.
Solution 2:
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.
Solution 3:
In my opinion, you don't need to worry, its ok to do it like this.
H1 designates part of your contents to be a first level heading. So if you have a first level heading in your navigation div (e.g. <H1>Navigation Menu</H1>
), of course that should be #nav h1
.
If you should have several H1s within your contents depends: If you have a blog and every entry has its own heading, those would be H1s. However, if your blog itself has a heading (e.g. <H1>My Blog!</H1>
), the blog entry heading should be an H2.
But that is only theory. Go for what is readable, semantic markup. You can best decide on that by looking at your html and asking yourself: 'Is it readable? Would the readability improve if I did it the other way?' The answer will vary from project to project.
Solution 4:
In general, you should only have one h1 per page, and that h1 should succintly represent the content on that page. As long as you are willing to style with CSS, find out which level of headings (h2, h3, h4, etc) that properly represent the headings you want to use, and then style them instead.
Solution 5:
Semantically, I prefer using one h1 on the page, mainly for the title of the page. It probably doesn't matter too much with SEO, and with the way html is going with HTML5, the generic header
tag will make it much simpler and this argument obsolete.