Megha S Patil• 70
@meghaspatil1
Posted
What difference does it tackle with hover and focus?
0
HaDo Dev• 160
@hadodev
Posted
@meghaspatil1,
The :focus
CSS pseudo-class represents an element that has received focus. It is generally triggered when the user clicks or taps on an element or selects it with the keyboard's Tab key.
I use :hover
and :focus
to cover both cases: when the user hover the element or use the Tab key to navigate to that element.
0