What would be the best way to position your logo?

What I usually do is create a div and put it inside like this…
<div id="logo">
<a href="/"><img src="http://yourDomain.com/somefolder/images/logo.jpg"alt="Some Text"></a>
But lately surfing and looking at other sites I noticed that some of them use an H1 tag and add the logo as the background something like this…
<a href="http://www.yourDomain.com/index.html">Some Text Here</a>
then indent the text and add the logo as background using CSS, something like this.
h1 a {background: url(“/images/logo.png”); text-indent: -9999px;}
and I was wondering what would be the best way to do this as far as SEO or semantically correct.

I'm just trying to figure the best way.

Thanks a lot.