Headlogo missing ALT tags, any ideas??

Discussion in 'CSS' started by mikeonthebeach, Oct 22, 2009.

  1. #1
    Last edited: Oct 22, 2009
    mikeonthebeach, Oct 22, 2009 IP
  2. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    wd_2k6, Oct 22, 2009 IP
  3. mikeonthebeach

    mikeonthebeach Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes I see it now. Thanks for that :) EOM
     
    mikeonthebeach, Oct 22, 2009 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    And,

    again,

    there are no tags for alt.

    It's an attribute. : )
     
    Stomme poes, Oct 24, 2009 IP
  5. mikeonthebeach

    mikeonthebeach Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    mikeonthebeach, Oct 24, 2009 IP
  6. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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.
     
    Stomme poes, Oct 26, 2009 IP
  7. mikeonthebeach

    mikeonthebeach Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Good advice thanks

    Mike
     
    mikeonthebeach, Oct 26, 2009 IP