Underlined linked text

I made a button that would scroll be up to the table of contents on my webpage, but under the button the text is underlined and linked to the table of contents, even though I don’t want it to.

Also, I’ve noticed that the buttton causes it

You are able to use CSS to get rid of it. Use text-decoration: none; to get rid of the underlining.


I solved it, thank you. But your solution didn’t work as it was under a link that would scroll up my website so I ended up deleting the button

1 Like