HTML image alternate tag is not displaying in FF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    HTML image alternate tag is not displaying in FF

    Hi, need a favor on this HTML element.
    I am using this tag for for my web Application to print some buttons along with some products.
    [HTML]<a href="javascrip t:get_id(1001)" >
    <img width="21" height="22" border="0" alt="Add Inquries" src="images_sto re/b_iqn.jpg"/>
    </a>[/HTML]

    problem is the alternate message is displaying in IE but not in FF.
    i there any way to display this alt in FF, and what is the reason for Not displaying it in FF.
  • merseyside
    New Member
    • Mar 2007
    • 48

    #2
    Try adding the title attribute too with the same text. Firefox follows the specifications and only uses the alt when an image cannot be displayed. IE will use the title attribute as the "tool tip" before using the alt attribute.

    [HTML]<a href="javascrip t:get_id(1001)" >
    <img width="21" height="22" border="0" alt="Add Inquries" title="Add Inquries" src="images_sto re/b_iqn.jpg"/>
    </a>[/HTML]

    Comment

    • ak1dnar
      Recognized Expert Top Contributor
      • Jan 2007
      • 1584

      #3
      Originally posted by merseyside
      Try adding the title attribute too with the same text. Firefox follows the specifications and only uses the alt when an image cannot be displayed. IE will use the title attribute as the "tool tip" before using the alt attribute.

      [HTML]<a href="javascrip t:get_id(1001)" >
      <img width="21" height="22" border="0" alt="Add Inquries" title="Add Inquries" src="images_sto re/b_iqn.jpg"/>
      </a>[/HTML]
      Thanks.Its working. ;)

      Comment

      Working...