CSS :active Selector
CSS :active Selector
A link becomes active when we click on it. The :active selector is used to select and style such types of links. We can use this on all elements and it is not specific to links only. It is also used in combination with :visited and :hover selectors. However, :active must be used after :hover in the CSS.
Syntax:-
Its syntax is:-
:active {
css declarations;
}