<h2> Псевдокласс [:focus]</h2>
<form action="#">
<input type="text">
<button> Отправвить</button>
</form>
input {
cursor: pointer;
}
input:focus {
background-color: yellow;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.