To highlight form fields use the input class

input:focus {
background-color: yellow;
}

Most browsers will support this including NN 6+, Firefox, Safari and Opera. If some don’t then the browser will simply ignore it.

Highlight the background of form fields when field in use