tags:

views:

52

answers:

2

our site is giving out 'badges' to our authors. they can post these on their personal blogs and they will serve as incoming links to our site.

We want to give out the best possible code for SEO without doing anything that would get us flagged.

i would like to know what you're thoughts are on the following snippet of code and if anyone has any DEFINITE advice on dos and donts with it. Also, let me know if any of it is redundant or not worth it for SEO purposes.

i've kept the css inline since some of the writers would not have access to add link to external css

i've changed the real values, but title, alt etc would be descriptive keywords similar to our page titles etc (no overloading keywords or any of that)

<div id="writer" style="width:100px;height:50px;>
<h1><strong style="float:left;text-indent:-9999px;overflow:hidden;margin:0;padding:0;">articles on x,y,z</strong>
    <a href="http://www.site.com/link-to-author" title="site description">
        <img style="border:none" src="http://www.site.com/images/badge.png" alt="description of articles" title="View my published work on site.com"/>
    </a>
</h1></div>

thanks

+1  A: 

I don't think there is any issue with this code except your <h1> tag. I would probably change it to <h2> simply because pages are supposed to have only 1 <h1> tag per page.

You could also use an iFrame instead if you wanted. That is what SO does but I know you will not get as much linky goodness.

RandomBen
good point on the h1 - probably h4 or lower is more appropriate
DC
+2  A: 
Lèse majesté
thanks for your answer - can you let me know what way would you code it? if we remove h1, is there any value in leaving the <strong> tag beside the image link? (is any additional weight given from keywords in close proximity?)
DC
also, would changing it to <h3> (for example) and adding a document element after the h3 tag make it correct in terms of semantic markup? (since it would be the heading for that text)
DC
If you're going to add text to the badge, then a section heading might be justifiable, but I would go for the least significant heading level since the badge itself isn't likely to be part of the document proper.
Lèse majesté
thanks - everyone assumes its just linking an image to our site, but the point is that we have the ability to add in extra markup and not just the image, so we want to get the best SEO bang for that. I think it sounds right on the h1 - so the solution is probably to change to h6 and add a text element to go with the heading so that the html structure will be correct. after all, sites embed links in h1 and h2 elements and use image replacement the whole time internally - e.g. main logos or section headings.
DC