I'm working on a personal project with HTML and CSS, and I'm trying to create a back button to navigate to the previous page. However, there's an underline beneath the arrow character (⮜) in my button that won't go away. I've attached my code below for reference. I've tried using 'text-decoration: none' but it hasn't worked. How can I fix this?
8 Answers
a
:
r
{
t
You should replace the
with a inside the anchor tag. This will help maintain valid HTML structure and make it easier to style without issues. Using a keeps everything inline properly and simplifies the styling.
c
I hadn't heard of before. Unfortunately, it doesn't seem to solve the problem... Thanks for the suggestion, though!