In this example, we use the :focus selector to add a background color to the text field when it gets focused (clicked on):