EN
CSS - remove link underline
3
points
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>