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

How to change the color of focused links with CSS

Using the CSS :focus pseudo class we can change the color of a link.

Whenever the user focuses on the link, the color will change to gold.

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

How to change the color of focused links with CSS

0
Using the CSS :focus pseudo class we can change the color of a link. Whenever the user foc…
asked
0 answers

Write Your Answer

Related Posts
Write Your Answer
back