-1

I find that the text turns purple with an underline after the link is clicked. Even when I refresh it a few times, it still remains purple with an underline. How can I keep the text from changing?

            <a
              href="https://www.youtube.com/watch?v=n2RNcPRtAiY"
              target="_blank"
            >
              <p class="video-title">
                Talking Tech and AI with Google CEO Sundar Pichai!
              </p>
            </a>
            <p class="video-author">Marques Brownlee</p>
            <p class="video-stats">3.4M views &#183; 6 months ago</p>
          </div>
1

2 Answers 2

1

That is the standard way that browsers indicate that a link is a visited link (e.g. the URL it points to appears in the user's browser history).

Apply CSS to change it. You will probably want to use the :visited pseudo-class.

MDN has an introduction to CSS if you need it.

0

The easiest way would be to remove the default styles for the "a" tag itself. This will solve your issue

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.