I may well be doing it wrong but i’ve always done it something like this
<h1><a href="/" title="Back to home"><span>My site name</span></a></h1>
By doing this i can then hide the span and expand the href out as a clickable link with a background image
h1 {display:block; height:100px; width:200px;}
h1 a span{ display:none;}
h1 a{display block; height:100%; width:100%; background: url('some_image.gif') top left no-repeat}
I might have missed something as this is just off the top of my head rather than my working code.
This should then be quite flexible if you want to swap the logo out at different screen sizes or for a design change.
ah ok that makes sense, i’ll look to impliment that. I did wonder about text-indent to ‘hide’ the span by putting it way off screen but never got around to testing it.
The problem i have with just using an image with alt text is that you are then stuck with that image. If it’s a background image set with css you can obviously then change it for all the different screen sizes and print etc quite easily.
I do need to install a screen reader to check these things as i am keen on ensuring everyone can access my sites, thanks for the tip.
As a digital marketer I don’t see any benefit of putting your logo in H1. Header tags are useful when there are some texts in it. H1 is the most important header tag and you should use it wisely. Try to put a text which best describe the content of the page. It should be reflecting your most important keyword. Sorry if its an off topic reply.