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.
- An unvisited link is underlined and blue.
- A visited link is underlined and purple.
- 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.
save
listen
AI Answer
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
Apu
0 answers
2915
To change the colour of active link, we can use the CSS
:active pseudo class.
As you…
Answer Link
answered
Apu