Languages
[Edit]
EN

CSS - remove link underline

3 points
Created by:
Saim-Mccullough
328

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>
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