HTML Element <u> Example
The HTML element <u>
is used to specify an underlined text.
It is used just for text formatting and provides no semantic information to browsers.
Here is an example that explains the element in action. Click the below link to see the live demo.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example - HTML Element u</title>
</head>
<body>
<p>This paragraph contains an <u>underline text</u>.</p>
<!-- Alternative approach using CSS properties -->
<p>This paragraph contains an <span style="text-decoration: underline;">underline text</span>.</p>
</body>
</html>