Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Location
    Monmouthshire, Wales, Uk
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Images and alt coding

    I have designed an extensive site [www.chepstow-walkabout.co.uk] and have just found out to my horror that in Firefox, image text does not appear.

    In IE when the mouse pointer hovers over the images on my tourpages, a small white box of text appears giving street directions. I believe in the coding it appears as

    <img src="greenarrow.gif" alt="Walk ahead along the High Street">

    Why does this not happen in Firefox?

  • #2
    New to the CF scene
    Join Date
    Oct 2009
    Location
    Monmouthshire, Wales, Uk
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Tried "title" instead of "alt"

    Have just tried using "title" instead of "alt" and it works in bith IE and Firefox. However, I do not fancy doing this for another 635 pages of code, each with at least four alts to change.

    Now is this a problem with my Firefox installation and can i amend my browser to accept "alt"?

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    That is because IE is incorrectly using the alt tag and I believe is the only browser that does that. The rest use the title attribute for the tooltip only. The alt tag is for the text that you want displayed if the image isn't loaded.
    OracleGuy

  • #4
    Senior Coder
    Join Date
    Jul 2009
    Location
    South Yorkshire, England
    Posts
    2,318
    Thanks
    6
    Thanked 304 Times in 303 Posts
    If you want the title attribute, you should be using that alongside alt, not replacing alt with title. The alt tag is meant to be a descriptive element to describe the image only, and is necessary for people with text browsers, images disabled in their browser and screen readers.

  • #5
    New Coder
    Join Date
    Feb 2010
    Location
    Nottinghamshire, United Kingdom
    Posts
    30
    Thanks
    0
    Thanked 3 Times in 3 Posts
    If you wish to change all of the alt tooltips to the title tooltips, then simply use Find and Replace. Type alt int the top, title in the bottom and click change all. This will be fine, as long as you do not have alt written anywhere on your page.

    Regards.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •