How do we create underlined text in HTML?



The HTML <u> tag is used to underline a text. You can try to run the following code to create underlined text in HTML −

Note − This tag is deprecated now and should not be used. Use CSS instead.

Example

<!DOCTYPE html> <html>    <head>       <title>HTML u Tag</title>    </head>    <body>       <u>Qries.com</u> is the next generation knowledge management system.    </body> </html>
Updated on: 2020-03-02T12:31:16+05:30

545 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements