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

2 Comments

  • Mila says:

    It was very helpfull to learn how to underline text in HTML.

  • Sebastian says:

    This tutorial is helpfull for me . I always wanted to know how to underline text in HTML but I thought it was too dificult. But thanks to this, I was able to do it easilly. Thanks for shareing!

Leave a Reply

Your email address will not be published. Required fields are marked *