<h2> Псевдокласс [:focus]</h2>

  <form action="#">
    <input type="text">
    <button> Отправвить</button>
  </form>
input {    
  cursor: pointer;  
}	
input:focus {    
	background-color: yellow;  
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.