Hey,
The state of an element is controlled by the help of pseduo class.
It is used to style element when mouse is hover over it (like changing color), focus on an element or used to change the opacity of an element.
For example:- anchor tag can use pseudo class in the following ways-