Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should my h1 be my logo or the next title in my page?

Tags:

html

I've always struggled with this decision, and I wanted to know if there are any structural or semantic reasons for handling it properly:

So consider that most sites have a logo (sometimes referred to as a masthead), I typically use an h1 for this element, then hide the text for that object, as it's usually an image.

But then the situation arises where I'll have a real title on the page, in our case say it's "Products", should this then be an h2? or should it be an h1? I was taught that you shouldn't have more than one h1 on the page, but it seems to be the most important as the h1 will never change.

Are there any SEO considerations or other reasons that I'd want to handle this in a certain way? Any input would be appreciated.


To clarify, when I say I hide the text, I usually would make the logo the background-image in my CSS, then I typically hide the text with the ol' text-indent:-99999px. I always thought this was the best way to make google index it properly.

like image 513
JP Silvashy Avatar asked Sep 16 '12 23:09

JP Silvashy


People also ask

Should H1 be site title or page title?

It's better if H1 tags are contextually related to the majority of the content on the page - so it should really be the page title. If every page has the same H1 tag (i.e. the site title), it degrades the value of them (and overall, they are really the most valuable tag).

Should your title and H1 be the same?

Should They Be Different? There is a lot of debate as to whether you need to write unique info for your Title Tag and H1 Tag. However, the general consensus amongst experts (including Rand Fishkin of Moz) is that it isn't dangerous to have your Title Tag be the same as your H1 Tag.

Should H1 be logo?

Headings are a way to define document structure and to organize content. The first heading on your site should be the one that best describes the content of your page. Sometimes this is your logo–but most of the time it's not. Usability: The tags <h1> to <h4> should be used to organize information and orient users.

Should H1 be main or header?

Add H1s To Every Page: All pages on your site should include an H1, and the header should appear only once at the top of the page. An H1 is known as the HTML tag that is used to display the main heading of a web page.


1 Answers

I would like to begin this by saying that I am no expert on this matter, this is only what I have been told by a number of sources.

I believe that the h1 tag should only be used for titles. The reason being that they are a great SEO tool. The h1 is a high ranking element in terms of the relevance of a page.

Placing an h1 around an image does nothing for your page, unless as you say, you place some descriptive text in it. The problem with placing hidden text inside an h1 tag is that the Google bots are smarter than that. They will either omit the tag entirely or place you on the blacklist (usually more than one instance needs to occur for this, but generally it's a bad idea to try and elevate your search rankings with hidden elements, meta tags excluded).

So, place your "products" heading in an h1. On any additional pages which don't have titles, I would place a descriptive sentence from the page inside of an h1, and style it to match the surrounding text. This will ensure that the bots know that the words within the tag are relavent to the page.

Edit: for OP Edit

Regardless of whether you use display:none or left-margin:-99999px, it's still not a good idea. That is a common way to hide text or elements, and I'm sure that it's not new to google ;)

like image 68
VictorKilo Avatar answered Sep 28 '22 10:09

VictorKilo