How to remove the underline from a link in CSS?

Spread the love

Sometimes, we want to remove the underline from a link in CSS.

In this article, we’ll look at how to remove the underline from a link in CSS.

How to remove the underline from a link in CSS?

To remove the underline from a link in CSS, we set the text-decoration property.

For instance, we write

<a href="http://example.com/" style="text-decoration: none">your site</a>

to add the text-decoration: none style to remove the underline from the link.

Conclusion

To remove the underline from a link in CSS, we set the text-decoration property.

Leave a Reply

Your email address will not be published.