Forum Moderators: phranque

Message Too Old, No Replies

Define a "title" to html text

i m not been able to define a title

         

sash

11:34 am on Sep 27, 2005 (gmt 0)

10+ Year Member



Hi All,

Can anybody tell me that how can i define a title to my html text just like we call alt funtion on an icon to view the name.

Thanks a lot

dhardisty

11:45 am on Sep 27, 2005 (gmt 0)

10+ Year Member



You aren't looking for the <title>title goes here</title> html tags, are you?

benihana

11:59 am on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is it the title attribute you after:

title="my title here"

which can be added to most elements

sash

12:05 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



well thanx for the prompt replis but i m just looking for an alternate of "alt". i have the option of giving title in td i.e. <td title="my title name">. this works fine. but what if i want to give the tile to a particular text.
for example:
<td>Your ID and Password are always sent over a secure connection.</td>

here i want to give a alt tag on password and id separately.

hope you get my point.

benihana

12:10 pm on Sep 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



well in that case you ned to wrap the text in something else, e.g.

<td>Your <span title="ID">ID</span> and <span title="pass"> Password</span> are always sent over a secure connection.</td>

sash

12:30 pm on Sep 27, 2005 (gmt 0)

10+ Year Member



thanx benihana. it solves my prob. thanx a lot.