What is the html code for text over images?

November 6th, 2009 | by admin |

What is the html code for text to appear when someone moves the mouse over a picture?

People never know what they are talking about. The alt="" attribute is NOT the attribute that shows the tooltip popup on a mouseover of an image. Although Internet Explorer does show the tooltip on a mouseover using the alt="" atribute, it is doing it WRONG!

The proper attribute to use in jus about any tag is the title="" attribute. Add this one with the short text description you want along with the alt="" attribute to stay within proper coding standards.

Ron

Technorati Tags: , , , , , , , , , , , , , , , , ,

Tags: Alt, Atribute, Attribute, Coding Standards, html code, Html Images, Html Text, Internet Explorer, Jus, Mouse Picture, Mouseover, People Talking, Picture People, Popup, Tag, Text Description, Text Html, Text Images

2 Responses to “What is the html code for text over images?”

  1. By TekuConcept on Nov 7, 2009

    use the alt key:

    <img src="http://www.echoecho.com/rainbow.gif" alt="This is a text that goes with the image">

    ‘alt=""’ will display the text when the mouse is over the image.
    References :
    go to echoecho.com for all calls in html.

  2. By PayneLessDesigns.com on Nov 7, 2009

    People never know what they are talking about. The alt="" attribute is NOT the attribute that shows the tooltip popup on a mouseover of an image. Although Internet Explorer does show the tooltip on a mouseover using the alt="" atribute, it is doing it WRONG!

    The proper attribute to use in jus about any tag is the title="" attribute. Add this one with the short text description you want along with the alt="" attribute to stay within proper coding standards.

    Ron
    References :

Post a Comment