element (short for underline) simply styles the text contained inside it
with a solid underline, but it offers no semantic meaning about the text
contained. It is, therefore, purely presentational in nature.
all the old presentational HTML elements still available, using the
u element is probably the worst markup crime that you
could commit. Not only is it deprecated - meaning that using it may
invalidate your document (depending on the doctype specified) - but underlining text for
anything other than links is generally considered very bad practice. The
convention is that text inside blocks of copy which is underlined
signifies a link (as in the
a element); arbitrarily underling
text, such as headings, will only cause the user to try clicking on it to
no useful end.
In addition to possibly confusing the user into thinking that the underlined text is a link, underlining can also cause readability problems, as the line interferes with the descenders on lower case text (for example the lower case letters g, j, p, q and y), making some word shapes less clear.
The example shown would render as follows:
Use this for…
Text content of any kind.
As one of the
earliest-used formatting elements,
u has full browser
There are no comments yet.