How to remove the underline for anchors or links with CSS?

Spread the love

Sometimes, we want to remove the underline for anchors or links with CSS.

In thtis article, we’ll look at how to remove the underline for anchors or links with CSS.

How to remove the underline for anchors or links with CSS?

To remove the underline for anchors or links with CSS, we set the text-decoration style.

For instance, we write

a {
  text-decoration: none;
}

to remove the underline of a elements by setting the text-decoration property to none.

Conclusion

To remove the underline for anchors or links with CSS, we set the text-decoration style.

Leave a Reply

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