How to Remove Underline from Link in HTML
Topic: HTML / CSSPrev|Next
Answer: Use the CSS text-decoration
Property
You can simply use the CSS text-decoration
property with the value none
to remove the underline from the link or hyperlink. Let's try out the following example and see how it basically works:
Example
Try this code »<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Remove Underline from Link Using CSS</title>
<style>
a:link, a:visited, a:hover, a:active {
text-decoration: none;
}
</style>
</head>
<body>
<p><a href="https://www.tutorialrepublic.com/">Click Me</a></p>
</body>
</html>
Related FAQ
Here are some more FAQ related to this topic: