Alt tag problem

Discussion in 'Web Design' started by jeanm, Jun 7, 2011.

to remove all ads.
  1. jeanm

    jeanm Member

    Messages:
    148
  2. d a v e

    d a v e New Member

    Messages:
    671
    alt ATTRIBUTES are only seen when the image is missing. (except in old version of IE that mistakenly display it)

    you just need to add the title attribute to the image

    <img class="jeans-photo" src="../../images-general/jean-morrison-head.jpg" alt="Pressed metal ceilings sold by Jean Morrison" title="Pressed metal ceilings sold by Jean Morrison" />
     
  3. jeanm

    jeanm Member

    Messages:
    148
    Thank you very much Dave.
     
  4. d a v e

    d a v e New Member

    Messages:
    671
    you're welcome
     
  5. jeanm

    jeanm Member

    Messages:
    148
    Dave this is weird. Look at this site on IE and the picture titles come up even when I haven't got Titles in the code. Now I'm really puzzled :confused:
     
  6. d a v e

    d a v e New Member

    Messages:
    671
    what version of ie? older version mistakenly display the alt attributes
     
  7. d a v e

    d a v e New Member

    Messages:
    671
    yeah for me versions 7 and below of IE show the alt attributes - it took them until version 8 of IE to correct their mistake. just put the title attributes in and your set to go ;)
     
  8. jeanm

    jeanm Member

    Messages:
    148
    I've just checked mine and it is version 9. So it is displaying two of my sites differently even in the same IE version. Strange?

    At least I know how to fix the problem now.
     
  9. d a v e

    d a v e New Member

    Messages:
    671
  10. jeanm

    jeanm Member

    Messages:
    148
    You are spot on Dave. I didn't know anything about compatibility mode till then. So much to learn, so much to learn.......
     
  11. d a v e

    d a v e New Member

    Messages:
    671
    i know what i know pretty well but there plenty of related things i'm ignorant or unsure of ;)
    being able to ask on forums is great - it's like having a big team of designers and developers you can tap for knowledge
     
  12. jeanm

    jeanm Member

    Messages:
    148
    In Dreamweaver CS5 there doesn't seem to be an area for me to code in titles for images. Seems it would always need to be done manually. Wonder why it is this way?
     
  13. rahmanpaidar

    rahmanpaidar New Member

    Messages:
    23
    use alt as well as title. some browser displays popup some does not.
    What browser you are using?
     
  14. jeanm

    jeanm Member

    Messages:
    148
    Hi rahmanpaidar. I've got all the alt tags in there but now I'll have to manually go through all three of my web sites to input the title for each image. I don't know why they don't have it in Dreamweaver just like you input the alt tag.
     
  15. rahmanpaidar

    rahmanpaidar New Member

    Messages:
    23
    If have not noticed this problem in Dreamweaver since I write usually HTML codes manually. It is much simpler for me than using Html editor. Html Editors often mess up the codes and stuff redundant code with unnecessary codes and in some cases they destroy your code.
     
  16. d a v e

    d a v e New Member

    Messages:
    671
    if you select the image in design view (click it ) in DW then press ctrl+t to bring up the quick tag editor then type in the

    title="text here"

    bit
     
  17. computerGeek

    computerGeek Banned

    Messages:
    212
    is the title attribute really necessary..?
     

Share This Page