Hi all, Could someone please advice how I get the alt tags into my headlogo. I'm pulling the stylesheet and header from my wordpress blog into my main sites pages. But the headlogo is missing its alt tag. The page: http://thealgarvepropertymarket.com The logo: http://thealgarvepropertymarket.com/images/logo.jpg Thanks Regards Mike
Your header logo isn't an image inside the HTML markup, instead it's represented as a background image inside the CSS, and is set as the background image for the header. So you can't add alt tags to an image unless it's an image inside your markup.
Yes I totally understand thanks. Was running some seo tests and there was an image without an alt tag. I thought it was that top logo but it can't be. Must be another image. Thanks again.
Yeah your validator will only see your HTML imgs (<IMG> tags) and won't know about the existence of background images. Now sometimes you have an image that is an <img> but isn't really content (doesn't mean or say anything and you couldn't properly use a background image). It's okay to do alt="" in these cases. You're only required to have the attribute itself, and if the image doesn't have anything valuable to "say" then you can spare web page listeners stuff like "logo of the company" with just an empty alt attribute.