Design comparison
SolutionDesign
Community feedback
- @meghaspatil1Posted 2 months ago
What difference does it tackle with hover and focus?
0@hadodevPosted 2 months ago@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
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord