Web development · Selectors and the cascade

States: hover, focus and position

Some styles depend on what a visitor is doing, or where an element sits in a list, and keyboard users depend on one of them.