Q:

How to Remove Underline from Link in HTML

0

How to Remove Underline from Link in HTML

All Answers

need an explanation for this answer? contact us directly to get an explanation for this 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:

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

HTML / CSS Frequently Asked Questions

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How to Make body to Have 100% of the Browser Heigh... >>
<< How to Set Fixed Width for td Regardless of its Co...