CSS :hover Selector
CSS :hover Selector
The :hover selector is used to selecting elements when we mouse over them. This selector can be used on all elements. It is used in combination with :link, :visited, and :active selectors. However, it must come after :link and :visited and before :active.
Syntax:-
Its syntax is:-
:hover {
css declarations;
}