Help on my Blog

Discussion in 'HTML & Website Design' started by browie, Jan 14, 2007.

  1. #1
    I'm sure it's an easy question for most of you. I actually fixed about 4 other problems myself :) Anyway, could some one go to my blog blog.browie.com and click the Valid XHTML and tell me what's wrong with the image? Or should I just leave it?
     
    browie, Jan 14, 2007 IP
  2. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #2
    You just need an alt tag on the image. put alt="some text here describing what the image is for" before your closing tag.

    i.e.
    
    <img src="http://blog.browie.com/pic/feed.png" alt="some text" />
    
    Code (markup):
     
    nevetS, Jan 14, 2007 IP
  3. browie

    browie Peon

    Messages:
    546
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sweet, next time i'll type in some random description.
     
    browie, Jan 14, 2007 IP
  4. rb3m

    rb3m Peon

    Messages:
    192
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Not random. A proper description. The alt is there to describe the image to people who can't see images in their browser or who can't see images, period.

    Of course, if your image is only decorative, then there's no reason to describe it. Try to imagine how it would affect a blind person whether there was a description for that image or not. And if you think it would make more harm than good, then leave the description out. That's why it's only a warning and not an error.
     
    rb3m, Jan 14, 2007 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #5
    Actually, the alt attribute is required. It is ok to provide a NULL value, thus <img src="some.png" alt=""> is perfectly legal, and preferable to omitting the attribute.

    cheers,

    gary
     
    kk5st, Jan 15, 2007 IP
    nevetS likes this.
  6. rb3m

    rb3m Peon

    Messages:
    192
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks for the clarification. I really thought it was optional.
     
    rb3m, Jan 15, 2007 IP
  7. browie

    browie Peon

    Messages:
    546
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I love you guys.
     
    browie, Jan 15, 2007 IP