Will positioning H1 tag off the page be penalised by Google?
#1
Posted 02 December 2009 - 10:10 AM
My friend has been waffling on about how he uses images to produce impressive looking title tags.
My response was "nice work horse face but what about your H1, H2, H3 tags?".
He then replied in a smug tone that made me want to vom " Ahhh, thats the clever part. You simply write the H1 tag text then position with css off the page"
I ended the coversation feeling well and truly bested.....but then I thought, would Google not penalise this as its a bit underhand surely?
Anyway without knowing myself I find myself back here.
Please advise that i'm indeed correct so I can go back and out-smug him.
Your help in this bitter rivalry is very much appreciated.
OD
#2
Posted 02 December 2009 - 10:46 AM
If anyone here has any different experiences I'd be keen to hear them, but this is a technique I've seen implemented in some great sites.
In fact, I would say it's better than simply using the image instead, and adding an alt tag. By keeping text in the header tags, you improve the usability of the site. Using CSS to style it seems perfectly fair to me.
Sorry I've not been able to provide you with the requested smug...
#3
Posted 02 December 2009 - 11:29 AM
Somebody please explain why you would want to put your main header hidden under a pic - just what is the benefit?
#4
Posted 02 December 2009 - 11:47 AM
I presume the benfit is to have a more design led header. This way you can use ponsey fonts and not just boring system fonts.
You can then include the same text as you have in your fancy image in the H1 tag which can then be crawled. Am i right in saying that keyword inclusion in your H1 tag is important from an SEO perspective??
#5
Posted 02 December 2009 - 11:56 AM
odmassive, on 02 December 2009 - 11:47 AM, said:
Very important, Google puts a lot of weight on your H1 tag. I always use H1 for the logo (with image replacement), then h2 for the main page title, h3 sub titles etc etc.
#6
Posted 02 December 2009 - 12:34 PM
Tom, on 02 December 2009 - 11:56 AM, said:
When you say with image replacement what do you mean? Do you put the image over the h1 text? Cheers
#7
Posted 02 December 2009 - 12:48 PM
odmassive, on 02 December 2009 - 12:34 PM, said:
Markup:
<h1><a href="#">Website name</a></h1>
Styles:
h1 a{
display:block;
width:100px;
height:100px;
background:url(/path/to/image.jpg) left top no-repeat;
text-indent:-9999px;
}So you're technically putting the image behind the text, but hiding the text by indenting it off the page. It could be done with just the H1, but the a allows it to be clickable.
#8
Posted 02 December 2009 - 12:50 PM
odmassive, on 02 December 2009 - 12:34 PM, said:
not exactly. Use css like this
h1 {
text-indent:-9999px;
background-image:url(path_to_image.png);
background-repeat:no-repeat;
height:20px;
width:100px;
}job done
#9
Posted 02 December 2009 - 01:26 PM
#10
Posted 02 December 2009 - 02:11 PM
Would you be able to have that as the H1 text but then indesnt it and have an better looking image for that same phrase with alt the same?
Would that likely be flagged as spammy by Google?
#11
Posted 02 December 2009 - 02:44 PM
Seems it's a strong point of discussion whether or not to use the h1 for a site title or content title.
I'll probably continue to use it for site title, until there's a good reason to change.
#12
Posted 02 December 2009 - 02:44 PM
I'm pretty sure there is no major SEO backlash for using this technique. I've used it on multiple sites and will continue to do so.
Regarding the use of H1 for content title or site title, I guess it would be contextually sensitive. If you want people to find you by brand name slap your site title in h1, if you want them to find you by service/product etc use content title.
#13
Posted 02 December 2009 - 03:18 PM
S3 Web Design, on 02 December 2009 - 01:26 PM, said:
The point is to make your website look nicer without compromising your relationship to search engines. The h1 text is still visible to any software reading the document, so its impact isn't lost. It's only when its viewed in a modern browser with stylesheets enabled that this effect will be apparent. A good example would be wanting to use a fancy font for your h1 tags.
This method gives you the best of both worlds
#14
Posted 02 December 2009 - 04:19 PM
#15
Posted 07 January 2010 - 01:15 AM
odmassive, on 02 December 2009 - 10:10 AM, said:
My friend has been waffling on about how he uses images to produce impressive looking title tags.
My response was "nice work horse face but what about your H1, H2, H3 tags?".
He then replied in a smug tone that made me want to vom " Ahhh, thats the clever part. You simply write the H1 tag text then position with css off the page"
I ended the coversation feeling well and truly bested.....but then I thought, would Google not penalise this as its a bit underhand surely?
Anyway without knowing myself I find myself back here.
Please advise that i'm indeed correct so I can go back and out-smug him.
Your help in this bitter rivalry is very much appreciated.
OD
It may be 'clever' but such techniques are still dicouraged by the google webmaster guidlines - a lot of people seem to use the technique though.
#16
Posted 07 January 2010 - 01:17 AM
I am Sam, on 02 December 2009 - 02:44 PM, said:
I'm pretty sure there is no major SEO backlash for using this technique. I've used it on multiple sites and will continue to do so.
Regarding the use of H1 for content title or site title, I guess it would be contextually sensitive. If you want people to find you by brand name slap your site title in h1, if you want them to find you by service/product etc use content title.
See the google webmaster guidlines, hiding text is not recommended by google: http://www.google.co...py?answer=66353
#17
Posted 29 March 2010 - 03:42 PM
#18
Posted 30 March 2010 - 08:32 AM
#19
Posted 31 March 2010 - 10:31 AM
I have seen it used in clever ways to hide keywords (seems very 'grey/black hat' to me) under menus and graphics and seems to do well. I cant help but feel that the best sites, are just optimised for the user and don't have hidden text, but sometimes the hidden text can really work wonders.
However, it seems to me when this is done with html and css it doesn't validate in W3C. Maybe it is just the sites I have seen and the way it has been employed.
These sites can be beaten without having to hide text.
#20
Posted 31 March 2010 - 10:54 AM
I think possibly though, that the <h1> tag should be used to describe the main theme of a page, although I have used image replacement in the past, I will be using the <h1> correctly in future projects.
#21
Posted 11 April 2010 - 12:42 PM
S3 Web Design, on 29 March 2010 - 03:42 PM, said:
Yup, nice find.
Hidden text is also discouraged as per the recommendations in Google Webmaster Docs. In fact, hidden text has been bad ever since I can remember.
#22
Posted 01 January 2011 - 11:18 PM
span {
display: block;
height: 0;
text-indent: -9999px;
width: 0;
}
common.css (line 74)
#23
Posted 22 January 2011 - 07:21 PM
#24
Posted 24 January 2011 - 02:08 PM
completedesign, on 01 January 2011 - 11:18 PM, said:
span {
display: block;
height: 0;
text-indent: -9999px;
width: 0;
}
common.css (line 74)
CNN.com is also a stupidly huge website, with, yep, 15.2 million backlinks according to yahoo siteexplorer AND a Pagerank of 10. CNN.com probably isn't the best example to use when talking about being penalised by Google, due to the sheer authority in Google. Google would never ever penalise such an authorative site for a tiny amount of hidden text.
#25
Posted 02 December 2011 - 01:08 PM
I've been text-indent: -999px for many years and have I've never had any problems with being penalized in the search engines.
#26
Posted 05 December 2011 - 12:21 AM
TylerCollins, on 02 December 2011 - 01:08 PM, said:
I've been text-indent: -999px for many years and have I've never had any problems with being penalized in the search engines.
Look at it like this. Google is constantly making improves to it rankings methods in order to provide the highest quality search results to it's users. How does text shoved off a page help a user?
At the end of the day you've used text indent purely to get some textual spam inside a H1 for search engines alone to see - justify it however you want
I'd avoid personally.
#27
Posted 05 December 2011 - 09:29 AM
It's generally stated that the h1 should be for the page title, not the website title. Where I want the website title and a page title on a page I use a p tag for the website title and position it above the h1 page title.
When using HTML5 <section> tags the recommendation is to have a h1 tag (or a lower rank) in every <section> tag. If you don't have a h tag your Outline http://gsnedders.html5.org/outliner/ shows an undefined section, so you have to put one there for accessibility but you may not want it to show, so I then use a style with text-indent: -9999px; which screen readers will read (no problem with that) and the Outline is complete, but the page won't show the heading if I don't want it to.
When using an image where there would normally be a h1 tag, I can't see the problem with using text-indent: -9999px; so that blind people have something to replace the image and give them the heading to hear. I don't believe it affects Google as the text is still read by Google, whereas using display; none; or visibility: hidden is a no-no. The Google recommendation is not to hide text with CSS, but to use the Alt attribute, but the Alt won't help SEO when the image has a page heading so you have to use off-page CSS for a h1 tag or avoid using an image for a heading. I don't believe Google penalises using off-page CSS for text to any noticeable extent and this method is very common, I think Google realises this.
This post has been edited by Wickham: 05 December 2011 - 10:06 AM
Help





















