How to underline text in HTML

Underline text is often used on links or to create extra focus on a text part. Just like italic text and bold text you need two tags. One at the beginning and another one at the end with your text inside the two tags. Underlined text would look like this…

<u>this is underlined</u>

You would usually underline text inside another HTML tag like the paragraph tag. Here is an example…

<p>I really enjoy my <u>working with HTML</u>. It provides me with endless possibilities.</p>

The output of this HTML would be…

I really enjoy my working with HTML. It provides me with endless possibilities.

  Written by: Michael from Beginnrtuts.com     25-08-2022     Written in: HTML tutorials

Leave a Reply

Your email address will not be published.