content logo

Learn HTML:

Html u tag

When writing in HTML, the <u> tag is used to designate a section of text that should be underlined. It is useful in instances where you want to indicate a misspelled word or a proper name in Chinese. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.

Note: The <u> tag should not be used solely for styling purposes; use CSS instead.

 

Example code

<p>This paragraph contains a <u>misspelt</u> word.</p>

Example result

This paragraph contains a misspelt word.

#HTML U Example #HTML U Code #HTML U Tutorial