There are different argument for all sorts of methods. The logo is usually not the main heading on the page, so I think there’s an argument for wrapping it in a <p>, with normal text (e.g. <p>My Company</p>) and then absolutely place the logo image over the top of that text. That way, if images are off, the text still appears.
Ok it looks like between the two sample I posted the second is the best way but instead it needs to be wrapped in a p tag then absolutely place the logo image over the top of that text.
Others may disagree about the <p>, but it’s my current preferred option.
Is my first option a NO, NO option?
It’s quite ok, really, and probably the better of your two suggestions. With images off, most browsers will show the alt text instead, which is quite good. (It annoys me that Safari doesn’t show the alt text, TBH, but there you go.
In a way, it could be argues that the logo is pretty much just decoration, so that option is quite feasible, really.
IMHO. If you lean toward using a P use DIV instead. the BRAND IDENTITY is NOT a paragraph, and shouldn’t be semantically marked as such. ( BTW,its ok to use a DIV A ( without a P, as long as you dont have other block elements inside that DIV…) in other words, direct children of a DIV are all blocks or all inline…)
Why not leaving the text out and just put the logo on the page and declaring width and height in the HTML , without wrapping it in a container? The alt-text will take care of people with images off.
I have recently started adopted this technique posted by deathshadow, I think it provides the best of all worlds. Besides that I generally place the site brand in a p element. Its not the main heading, so it shouldn’t be treated as such.