I'm trying to find the right balance here, so I wanted to see if anyone knows which scenario below is better in terms of semantic markup and SEO.
Using this site's logo, Scenario 1:
<div id="hlogo">
<a href="/">Stack Overflow</a>
</div>
#hlogo a {
width:250px;
height:61px;
display:block;
background-position:0 0;
text-indent:-999999em;
float:left;}
Or is it better to avoid hiding the text and simply use a rel attribute in the anchor tag?
<div id="hlogo">
<a href="/" rel="Stack Overflow"></a>
</div>
#hlogo a {
width:250px;
height:61px;
display:block;
background-position:0 0;
float:left;}
I'm wondering if removing the actual text "Stack Overflow" would be a bigger SEO hit than hiding the text. It seems as though everyone uses the text-indent method even though Google says that's a no no. What's the best way to achieve this for semantic markup and SEO?