 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to remove underline from a link in HTML?
We use inline style attribute with the CSS property text-decoration to remove underline from a specified link in HTML.
Syntax
Following is the syntax to remove underline from a link in HTML.
<a style="text-decoration: none" href=link>HTML tutorial</a>
Example
Following is the example program to remove underline from a link in HTML.
<!DOCTYPE html> <html> <head> </head> <body> <h3>HTML-HyperText Markup Language </h3> <a style="text-decoration: none" href="https://www.youtube.com/watch?v=qz0aGYrrlhU ">HTML tutorial</a> </body> </html>
Example
<!DOCTYPE html> <html> <head> </head> <body> <h2>instagram login</h2> <a style="text-decoration: none" href="https://www.instagram.com/accounts/login/">instagram login</a> </body> </html>
Example
Following is another example program to remove underline from a link in HTML.
<!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>
Advertisements
 