HealthFinding

How to Show Text on Rollover HTML

104 3
    • 1). Add the desired text to the "title" attribute in an image tag, like this: <img src="http://www.url.com/image.jpg" title="Text goes here"/>

    • 2). Add the desired text to the "alt" attribute in an image tag, like this: <img src="http://www.url.com/image.jpg" alt="Text goes here" title="Text goes here"/>
      Enter the text in both the alt and title attributes to ensure cross-browser compatibility. In other words, make sure the text shows up no matter which browser the user has.

    • 3). Add the desired rollover text to the "title" attribute in a link. This is the same as adding it to an image, except it is being entered in a link tag, like this: <a href="/links/?u=http://www.url.com" title="Text goes here">Link text</a>

Source...

Leave A Reply

Your email address will not be published.