change tab key selection color with css - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Color

Description

change tab key selection color with css

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>

input:focus {<!--  w  w  w.j a  v a2 s.  com-->
   background-color: yellow;
}

      </style> 
 </head> 
 <body> 
  <p>Click inside the text fields to see a yellow background:</p> 
  <form>
    First name: 
   <input type="text" name="firstname"> 
   <br> Last name: 
   <input type="text" name="lastname"> 
  </form> 
 </body>
</html>

Related Tutorials