Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML tag

HTML tag

Example

Use Add underline to text:

This is a parragraph.

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support tag.


Tag Definition and Usage Notes

The tag defines text that differs from normal text in style, such as misspelled words or proper nouns in Chinese.


Tips and Notes

**Tip:** Try to avoid using the to underline text, as users may confuse it with a hyperlink.

**Note:** The HTML5 specification recommends that developers use other elements instead of .


Differences between HTML 4.01 and HTML5

In HTML,element is deprecated ( the element was used to define underlines).

In HTML5, the element was redefined; it defines text that differs from normal text in style, such as misspelled words or proper nouns in Chinese.


Global Attributes

The tag supports HTML Global Attributes.


Event attribute

The tag supports HTML Event Attributes.