Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Underline a word -text box HTML?

Sep 26, 2005 9:45PM PDT

Underline a word in a web site

When you point the mouse over the word this is underline, its displays a small box text box (like information, etc) how do I do this..

Many thanks

Discussion is locked

- Collapse -
Here is the code
Sep 27, 2005 5:09AM PDT

Here is the code

<u>Place your underlined message here</u>


Hope this helps

- Collapse -
<u> only underlines
Oct 1, 2005 10:35PM PDT

However, to me the question is not quite clear. Are you referring to a hyperlink or just an underlined word?

For a word that is just underlined, a <acronym title="h t m l">HTML</acronym> would pop up a box reading h t m l when hovering over HTML.

Is that what you mean?

- Collapse -
The question was
Oct 2, 2005 5:49PM PDT

The question was

Underline a word in a web site

If they want the mouse over command to show, then that is a different command.

- Collapse -
There was a second question.
Oct 2, 2005 7:46PM PDT

and in connection with that question, a simple underline makes no sense.

Unless of course the person really asked 2 unrelated questions -that's possible, but not how I took it.

- Collapse -
I think you're right.
Oct 2, 2005 9:19PM PDT

He says; ''When you point the mouse over the word this is underline, its displays a small box text box (like information, etc)''

I believe what he is asking is the ''alt'' function within the <img src> anchor.

If you had this;
<a href=''web-page.html''><img src=''image.jpg'' alt=''click here!''></a>,

then a mouse over of the image would produce a popup box saying, ''click here''.

But I don't know of a way to do this with a simple <a> link, eg;
<a href=''web-page.html alt=''Click the link''>Click here</a>

would not produce a popup when the mouse hovers over the link. The mouse would just hover over an underlined link called ''Click here''.

Mark