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
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts

    What is the difference between Alt tag and Title tag ?

    Hi,

    I have use both the alt tag and title tag in a clickable image that
    is on my site.

    This is the code I used:

    PHP Code:
    <!-- // SF-Code Project Management M ##gc87f48yf** // --> 
    <a href="http://www.support-focus.com/check.php?key=SFM64929" 
    onclick="NewWindow(this.href,'','860','700','yes','default'); 
    return false" 
    onfocus="this.blur()" >  
    <
    img src="http://www.support-focus.com/image_load.php?id=SFM64929" 
    alt="Support-Focus Membership SFM64929 Click to Verify - Before you Buy" 
    title="Support-Focus Membership gc87f48yf Click to Verify - Before you Buy"
    border="0" >
    </
    a
    So what is the difference between the two tags and does anyone know if Google indexes the tags?

    For instance in the alt tag I have a code: SFM64929 will this get indexed?
    And in the title tag there is a different code: gc87f48yf will that get indexed?

    To see the image that I am talking about you can visit this page:
    Project Planning

    Would appreciate anyone's advice about this.

    Thanks
    Last edited by jeddi; 12-07-2009 at 04:42 PM.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    The alt tag is for the text you would want to be displayed when the image couldn't be loaded. The title tag is just that, the title of the image. And the title is what should be shown in the tooltip if you hover over the image. Some older browsers would display the alt text in the tooltip if there was no title.
    OracleGuy

  • #3
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts
    Thank you

    And does anyone know whether G indexes any of these when the bot visits the page?

  • #4
    met
    met is offline
    Regular Coder
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    728
    Thanks
    4
    Thanked 119 Times in 119 Posts
    some debate about this..from what i've read at least

    http://googlewebmastercentral.blogsp...s-smartly.html

    suggests that alt is useful for google indexing images.

    personally i'd set them regardless as it's good for accessibility

  • #5
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    I knew the answer to this but I've forgotten. I think Google looks at alt but not title. Let's see if I can find it.
    EDIT: I think met's link might be the one I was thinking of.


  •  

    Posting Permissions

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