Languages
[Edit]
EN

CSS - remove link underline

3 points
Created by:
Saim-Mccullough
688

In this short article, we would like to show how remove link underline using CSS.

Quick solution:

a {
    text-decoration: none;
}

The style property that removes underline effect on text is text-decoration: none that must be used directly on a element.

 

Practical example:

// ONLINE-RUNNER:browser;

<!doctype html>
<html>
<head>
  <style>

    a {
        text-decoration: none;
    }

  </style>
</head>
<body>
  <a href="https://www.dirask.com/">Go to the Dirask homepage.</a>
</body>
</html>

Alternative titles

  1. CSS - no underline
  2. CSS - underline: none
  3. CSS - text decoration: none
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join