28 March 2009

ToolTip in HTML

Basic TooTtip:
The attribute of HTML element for tooltip is title. You can add a tooltip like below

<img src="alorchhota.jpg" title="Alor Chhota" />

Line Break in ToolTip:
For line break in tooltip, you might be thinking of  either "<br/>" or "\n". Unfortunately, neither does work. The required string is "&#13;". 13 is the ASCII value of line break. For example:

<img src="alorchhota.jpg" title="Alor Chhota&#13;Dhaka, Bangladesh" />



© 2007 t!ps n tr!cks: ToolTip in HTML

Template unik dari rohman

---[[ Skip to top ]]---