Forum Moderators: open
How does google deal with_
<h1><img src="www.SiteName.com.gif" alt="Site Name" /></h1>
does google see that as <h1>Site Name</h1>
What about if that logo is also the back link to root like:
<h1><a href="/"><img src="www.SiteName.com.gif" alt="Site Name" /></a></h1>
All that makes perfect sense for structural markup and the user experience, but does it suffer from SEO abuse and is downgraded by google relative to the text only version?
SN
WBF
Please view the site in my profile. All the image is is a particularly ornamented version of the title of the page.
would you expect to see <h1>Coca Cola</h1> at the top of the coca cola website, or the distinctive CocaCola logo? both canbe taken as the h1 title. remmber that according to the w3c specs there should be only on h1 title and therefore it is the titel of te whole page, which, in the case that the site name is the logo, is equal to the logo
SN
#section h1 {
background: transparent url(header.gif) no-repeat top left;
margin-top: 15px;
width: 150px;
height: 75px;
float: left;} #section h1 span {
display:none} The last bit makes sure the text isn't seen on screen. Now here's the HTML:
<div id="section">
<h1><span>My Page Title</span></h1>
</div> Simple eh?
I can't claim credit for it though. Here is a page describing the effect in detail, along with its drawbacks:
Have fun.
This is not really true. In Opera, if you turn off images, the alt text is "marked up" just fine. I think this is the case in Mozilla too, but I can't remember how to simply turn off images in Moz.
Hester - personally, I would NOT do this. For all sorts of reasons.
Go to the W3C and this is what they say [w3.org]:
<h1> is the HTML tag for the first-level heading of a document.
The title is generally duplicated in an <h1> element towards the top of the page. Unlike the title, this element can include links, emphasis and other HTML phrase elements.
Please view my site
Please view the site in my profile.
That's not necessary for me, you've done a good job describing the issue, which you describe as a Styling problem.
The Underlying Problem: Design Issues
I take this to mean that you have a layout/design that won't accomodate a conventional h1. Style choices can sometimes get in the way of search engine friendly design, and the only way around this is to plan your design with both concerns at the forefront during the initial design process. One can make it unecessarily difficult for themself by designing the look first, then tacking on the search related elements afterwards.
But what does Google say?
Google is not only a search engine, it is also a web site. It has a webmaster guidelines page [google.com] that says this:
Try to use text instead of images to display important names, content, or links. The Google crawler doesn't recognize text contained in images.
Although this speaks to your question indirectly, it directly states what Google wants, and if anyone cares about search engine traffic then it's wise to give Google what Google wants.
Search engines will see the text between the span, so Google is served.
It's only an idea, I haven't used it yet myself, but I thought it was worth suggesting.
nothing about not using images in the W3C quote you give there.
I can see your point, but if I can gently make a suggestion, that's not a valid or logical way to justify a statement: For example, there's nothing in there about using hidden text with h1 tags either...
In other words, it says what an H1 tag is, there are a million things that an H1 tag is not.
:)
This site is NOT graphic design heavy, if you can call it designed at all. it is VERY utilitarian, and has been operating since 1999.
SN