0

All about a hrefs and text decoration -- removing link's blue colour and underline

In this code of mine https://code.sololearn.com/WJ2p6gwjRWZo/?ref=app I want the link's word to be in yellow colour, I have used CSS styles like text-decoration and colour, then also it is not working, how to make it done.

21st Mar 2018, 6:07 PM
Jitesh Gupta
3 odpowiedzi
+ 5
You need to reference the anchor tag, not the body :) a { color: yellow; text-decoration: none; }
21st Mar 2018, 6:12 PM
Just A Rather Ridiculously Long Username
+ 1
you can do it more specific, for example to turn the text orange when clicked: a:link { color: yellow; text-decoration: none; } a:visited { color: orange; text-decoration: none; } this can be helpfull, but it is just an extra
21st Mar 2018, 9:47 PM
Roel
Roel - avatar
0
ok Thanks
21st Mar 2018, 6:13 PM
Jitesh Gupta