Producing web pages
* HTML CSS DHTML XHTML A to Z of tags        Accessibility          Design

focus

The :focus pseudo-class allows you to apply styles to the tag that is the current focus of input (for example, it accepts keyboard input). You would probably use this in forms. For example, you could change the colour of the current input:

input:focus {background-color: green;}

You can also enter the outline-color, outline-style and outline-width. These define an outline for the tag and work a bit like borders.