IE vs Firefox for alt tags

Discussion in 'HTML & Website Design' started by #Darren, Jul 9, 2006.

  1. #1
    I developed the habit of describing some pics with only an alt tag, because the words appear when you hover your mouse over the pic when using IE. But I have since noticed that they don't appear when I use firefox.

    What is the general consensus about this method?

    Darren.
     
    #Darren, Jul 9, 2006 IP
  2. stymiee

    stymiee Peon

    Messages:
    427
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Alt attributes are only supposed to be displayed when images cannot be displayed. IE's handling of alt attributes is incorrect. Firefox and other browsers handle it correctly. If you want that little tooltip to appear every time use the title attribute instead.
     
    stymiee, Jul 9, 2006 IP
  3. KLB

    KLB Peon

    Messages:
    1,167
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Damn Stymiee you're still beating me to the punch on answering questions like this over here like you were at SPF.:eek:

    You must spend more time on forums than I do, if that is possible.

    On the topic of this thread, as Stymiee stated MSIE gets this all wrong. ALT attributes are only for missing images. If you want little tooltip captions to appear, you need to use the TITLE attribute instead.
     
    KLB, Jul 9, 2006 IP
  4. #Darren

    #Darren Guest

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks Guys :).

    Darren.
     
    #Darren, Jul 9, 2006 IP
  5. stymiee

    stymiee Peon

    Messages:
    427
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I do need to get out more. That's for sure.
     
    stymiee, Jul 9, 2006 IP
  6. KLB

    KLB Peon

    Messages:
    1,167
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Well if you were here in Maine, I'd invite you out for a round of disk golf.:cool:
     
    KLB, Jul 9, 2006 IP
  7. sllik

    sllik Active Member

    Messages:
    419
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    In Firefox it displays the title attribute, so in an image tag you would do something like:

    <img src="image.jpg" alt="Image" [b]title="Hover Text"[/b] />
    Code (markup):
    I'm not sure if that was already said or not, but there's my information.
     
    sllik, Jul 9, 2006 IP