By eHow Internet Editor
Rate: (3 Ratings)
Underlines can be used to highlight and emphasize text on web pages. Text can be underlined using CSS style sheets, with the text-decoration property, or, less preferably, with the HTML U element.
SPAN element, by adding an opening tag before the text and closing tag after.
SPAN by adding a STYLE attribute to it as follows: STYLE="text-decoration; underline; "
CLASS attribute to the SPAN, giving the name of a CSS class which defines text underlining. This is an alternative to using the STYLE attribute as described in the preceding step. The format of the CSS class declaration is as follows: .my-underlined-class { text-decoration: underline; }
U element, by placing an opening and closing tag before and after the text.
text-decoration property can also be used to place a line over (overline) or through (line-through text, or turn off underlining already in effect (none).eHow Internet Editor