Sorry if i don't know the exact name for this ...
In one html page when we mouse over certain elements
appears one yellow box with some comments.
How can i do that in html code.
Thanks
Fernando
It's better to use the "title" attribute for this.
You can use the "title" attribute for most HTML-tags and the "alt" attribute only for the <IMG> tag.
The "alt" attribute is for (alternative) text, displayed when an image is not loaded.
The "title" attribute is used for those popup boxes.
See Starway's post in thread215-383216 for a better explanation!
If you are interested, see my post in that thread to align the text in those popup's.
Here is an example for some HTML-tags where you can use the "title" attribute too:
<form>
<textarea title="this is a textarea"></textarea><br>
<input type="text" title="this is a textbox"><br>
<input type="radio" title="this is a radiobutton"><br>
<input type="checkbox" title="this is a checkbox"><br>
</form>
Hope this helps,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
In addition to Boomerang's post, I'd like to tell that those special code entities are good only for IE. Other browsers behave differently: Opera just ignores them and shows title text in one line, Mozilla does the same but adds some other chars (that sometimes look as rubbish). So be careful.
Also, if you just want to write some text on several lines (without any other formatting), no any code entities needed, just press [Enter] in your code editor:
title="this comment press [Enter] here
will be shown on several lines. press [Enter] here
(IE-only, others display it as one line)"
Also, I forgot to add that TITLE attribute is not supported by NN4 - it is just ignored there.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.