Mobile app version of vmapp.org
Login or Join
Si4351233

: Will Google penalize me for hiding header text? I read this post: http://www.google.com/support/webmasters/bin/answer.py?answer=66353 On my site currently, I have the following: // site.css h1{ background:

@Si4351233

Posted in: #Google #Seo

I read this post:
www.google.com/support/webmasters/bin/answer.py?answer=66353
On my site currently, I have the following:

// site.css
h1{
background: transparent url("/images/mylogo.png") 0 0 no-repeat;
}

h1 span{
display:none;
}

<!-- index.html -->
<h1>
<span> Name of My website </span>
</h1>


My thinking was that by including the text in the header that the HTML would still be well-structured. Since reading that post though, I'm anxious that google may penalise us for hiding text content.

Can anybody shed some light on this issue?

Is including hidden text in the header beneficial or detrimental (or neither) ?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

2 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

Why not follow Google's suggestion about using Javascript, and use it to hide the h1 and display the image. If it's not enabled then people (and search engines) will still see the text.

10% popularity Vote Up Vote Down


 

@Bryan171

You should really be using img and alt text to do this. css background images are more for pretification rather than content.
stackoverflow.com/questions/492809/when-to-use-img-vs-css-background-image
You could argue that it is image replacement of text which is quite common but as it stands the text wouldn't show even with images turned off.

At the very least that particular text is not going to be indexed as highly.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme