I don't want underline below my link, how to do it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I don't want underline below my link, how to do it

Want code to write , so that no underline appear below link and it also doesn't change clour when clicked it

16th Feb 2020, 6:36 AM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar
7 Answers
+ 2
It has both the methods using css and doing it in html: https://www.computerhope.com/issues/ch001787.htm But I will suggest you to use CSS and HTML5
16th Feb 2020, 6:42 AM
Chetali Shah
Chetali Shah - avatar
+ 2
In your css write: a{ text-decoration:none; } For color: a:link {   color:red; } And do the same for a:hover, a:visited and a:active
16th Feb 2020, 6:39 AM
Chetali Shah
Chetali Shah - avatar
+ 1
Thanks
16th Feb 2020, 6:59 AM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar
+ 1
You have to mention it in your css. Visit this: https://www.w3schools.com/css/css_link.asp
16th Feb 2020, 8:34 AM
Chetali Shah
Chetali Shah - avatar
+ 1
Chetali Shah thankyou
16th Feb 2020, 9:09 AM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar
0
How to do it in html
16th Feb 2020, 6:40 AM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar
0
Chetali Shah a:visted is predefine function , or we have to mention it when using css in html
16th Feb 2020, 7:49 AM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar