How ToJavaScriptColor PickerMake Web StoriesQuiz GeneratorFAQ Schema GeneratorTable Maker3schools TranslateImage Compressor
Apu
Apu 11/27/2022

How to Change the Color of Active Links with CSS

To change the colour of active link, we can use the CSS :active pseudo class.

As you know browsers set a default color on links.

  1. An unvisited link is underlined and blue.
  2. A visited link is underlined and purple.
  3. An active link is underlined and red.

So, use the CSS :active pseudo class to change the colour of a active link.

<style> 
  a:active{
    color:gold
  }
</style>
<a href="https://www.3schools.in"> Visit 3schools</a>

Whenever you hover over the above link it will turn gold color.

Share
Save

How to Change the Color of Active Links with CSS

0
To change the colour of active link, we can use the CSS :active pseudo class. As you…
asked
0 answers

Write Your Answer

Related Posts
Write Your Answer
back