- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- 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