Keep using those alt tags, Apple

Discussion in 'Web Design and Development' started by Doctor Q, Mar 28, 2006.

  1. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #1
    I spotted this HTML in e-mail Apple sent to some iTunes customers:
    Code:
    <img align="right" border="0" hspace="3" width="140" height="140" alt="Alt Tag Goes Here" src="http://a1.phobos.apple.com.edgesuite.net/r10/Features/d5/cc/e7/dj.ekrfmrme.jpg">
    Perhaps the alt tag could have used a better value!

    The alt text was clearly a placeholder that never got filled in. Apple leaves it null (alt="") for images without meaningful content, such as spacers and graphic borders, but Apple is usually pretty good about filling in alt text for real images. But I guess anybody can miss one now and then.

    That made me think of checking Apple's home page to see if they used alt tags on all meaningful images. It turns out they do. So we'll give Apple an A- grade for the week.
     
  2. skoker macrumors 68000

    skoker

    Joined:
    Aug 6, 2005
  3. amacgenius macrumors 68000

    amacgenius

    Joined:
    Aug 3, 2005
    Location:
    Buffalo, NY
    #3
    Nice catch there Q - I didn't even think Apple used proper tags at all, but I guess I'm wrong.
     
  4. floyde macrumors 6502a

    floyde

    Joined:
    Apr 7, 2005
    Location:
    Monterrey, México
    #4
    They're probably moving to strict xhtml now? A site won't validate as strict if the alt attribute is ommited...

    I'm sure the W3C had good intentions when they made the alt attribute obligatory, but I forsee a future in which devs will fill alt's with all sorts of crap just to comply with the standard :eek:
     
  5. mkrishnan Moderator emeritus

    mkrishnan

    Joined:
    Jan 9, 2004
    Location:
    Grand Rapids, MI, USA
    #5
    I think Alt is a good thing. :)

    And psssh, I heard that someone tried to replace "Alt Tag Goes Here" with the code for the alt tag, but the recursion led to an Infinite Loop! :eek: ;)

    BTW, how much of the commercial internet actually validates out correctly? It seems like almost everyone takes shortcuts....
     
  6. Doctor Q thread starter Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #6
    <img src="spacer.gif" alt="iPods on sale at bargain prices while supplies last. Visit www.reallycheapbargainstuff.com.">​
    <img src="topborder.jpg" alt="A horse walks into a bar...">​
     
  7. cookie1105 macrumors 6502

    Joined:
    Mar 27, 2006
    Location:
    London, UK
    #7
    The think the apple site is not bad at all. It doesn't validate as html 4.01 transitional (7 errors) but they are only minor (i think??). CSS has 2 errors (also minor???). It has scaleable fonts, content and design separated, semantic markup & alt tags.....blah blah blah.

    The design is decent, imho it is a very accessible site.

    Please feel free to correct me if I have missed the point.:)
     

Share This Page