How to remove underline from a link in HTML?

HTMLWeb DevelopmentFront End Technology

To remove underline from a link in HTML, use the CSS property text-decoration. Use it with the style attribute. The style attribute specifies an inline style for an element.

Use the style attribute with the CSS property text-decoration to remove underline from a link in HTML. Just keep in mind, the usage of style attribute overrides any style set globally. It will override any style set in the HTML <style> tag or external style sheet.

Remove Underline

Example

You can try the following code to remove underline from a link in HTML

Live Demo

<!DOCTYPE html>
<html>
<head>
   <title>HTML Text Decoration</title>
</head>

<body>
   <h2>About</h2>
   <p>
      Our <a href="/about/about_team.htm" style="text-decoration: none;">Team</a>
      comprises of programmers, writers, and analysts.
   </p>
</body>
</html>
raja
Published on 01-Feb-2018 10:43:56
Advertisements