How To Remove Underline From A Link In HTML? - Tutorialspoint

  • Home
  • Whiteboard
  • Online Compilers
  • Practice
  • Articles
  • AI Assistant
  • Jobs
  • Tools
  • Corporate Training
  • Courses
  • Certifications
Menu Categories Login
  • Switch theme
  • SQL
  • HTML
  • CSS
  • Javascript
  • Python
  • Java
  • C
  • C++
  • PHP
  • Scala
  • C#
  • Tailwind CSS
  • Node.js
  • MySQL
  • MongoDB
  • PL/SQL
  • Swift
  • Bootstrap
  • R
  • Machine Learning
  • Blockchain
  • Angular
  • React Native
  • Computer Fundamentals
  • Compiler Design
  • Operating System
  • Data Structure and Algorithms
  • Computer Network
  • DBMS
  • Excel
Technical Questions and Answers
  • 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? HTMLWeb DevelopmentFront End Technology

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> Lokesh Badavath Lokesh Badavath Updated on: 2023-09-02T12:27:12+05:30

53K+ Views

Tag » A Link Without Underline Css