View Full Version : deprecated tag


Moonlit
09-12-2003, 10:16 PM
I was looking at a list of tags...trying to find one for underlining text, which is <u>...but it said that the tag is deprecated. Does this mean I shouldn't use it?

amicus
09-13-2003, 12:56 AM
deprecated just means that it's old, you can use it. it'll work just fine for a few more html iteration. if you don't want to use it just use this css and you'll be fine too :)

text-decoration: underline;

Moonlit
09-13-2003, 02:39 AM
Okay, thank you. :)
How would I make just or two words underlined, though?

amicus
09-13-2003, 03:20 AM
try this piece of code :)

<html>
<head>
<style type="text/css">
.underLine {
text-decoration: underline;
}
</style>
</head>

<body>
This text is <font class="underLine">underlined</font>
</body>
</html>

pb&j
09-13-2003, 06:22 AM
Originally posted by amicus
try this piece of code :)

This text is <font class="underLine">underlined</font>

since FONT is also deprecated, the SPAN tag should be used...
<span class="underLine">underlined</span>