CSS - remove link underline

3 points
Created by:

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>

    a {
        text-decoration: none;

  <a href="">Go to the Dirask homepage.</a>

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.

❤️💻 🙂