css

Remove underline from link using CSS

You can use the text-decoration property of CSS to remove the underline from the link.

.link {
    text-decoration: none;
}

To remove underline from a link or <a> HTML tag you can use CSS property text-decoration: underline;

To remove the underline from all tags use the below syntax:

a {
   text-decoration: none;
}

Remove underline from a specific element use below code by assigning a class to that element.

.cs_name {
   text-decoration: none;
}
Was this helpful?