U HTML Code underline Css

U HTML Code underline Css

The <u> HTML element represents a span of inline text which should be rendered in a way that indicates that it has a non-textual annotation. This is rendered by default as a simple solid underline, but may be altered using CSS.


Example

Mark up a misspelled word with the <u> tag:


<p>This is some <u>mispeled</u> text.</p>


Output:

The u element

This is some mispeled text.


Default <u> CSS Settings
Most browsers will display the <u> element with the following default values:

Example

u {
  text-decoration: underline;
}

More Example:

<p>You could use this element to highlight <u>speling</u> mistakes, so the writer can <u>corect</u> them.</p>

Output:


You could use this element to highlight speling mistakes, so the writer can corect them.

Comments :

Post a Comment