+ 1

How to remove underline from link

<div class="test"><ul> <li class="first-nav"><a href="home.html">HOME</a></li> </ul> </div>

16th May 2018, 3:25 PM
Shubham Gupta
Shubham Gupta - avatar
4 Answers
+ 1
& the answer is you have to put style ="text-decoration:none " under <a> Like this < a href =" home.html " style ="text - decoration :none "> </a> It will work only hare not anywhere else. But thanks for the support and searching a lot I got my answer.
16th May 2018, 5:04 PM
Shubham Gupta
Shubham Gupta - avatar
+ 1
.first-nav a { text-decoration: none; } Avoid writing inline CSS since it just creates clutter on in the HTML code, there is a reason people write html, css, javascript/jquery separately, readability and maintenance of the code.
16th May 2018, 6:55 PM
Vladimir
Vladimir - avatar
0
Nope it's not working. Look the question again.
16th May 2018, 3:30 PM
Shubham Gupta
Shubham Gupta - avatar
0
I tried that earlier , then I came hare but not getting the solution.
16th May 2018, 3:33 PM
Shubham Gupta
Shubham Gupta - avatar