I'm struggling to get rid of the underline link that appears when you hover over an a
element in HTML. I added a style="text-decoration: none"
attribute to the a
link but when I put the mouse over the text, the underline appears.
I also tried using this CSS:
.nounderline {
text-decoration: none;
}
.nounderline a:hover {
text-decoration: none;
}
And then setting the nounderline
class on the a
link.