0
What is the use of (:focus)pseudo class in css
Difference between :focus pseudo class and other pseuso selector
6 Respostas
+ 3
The use of it is to add a style to the focsed html inputs / form.
Example:
https://code.sololearn.com/W2CgW3Hvb947/?ref=app
the difference would be that.. umm-_
I think it only works on forms. It wonât work on <div>, <p>, ...
+ 1
Ginfio Is this only used in html inputs/forms ?
+ 1
HRITIK.DIYUNDI yeah, I think so.
as far as I know, :focus is used foe inputs, forms.
+ 1
Ginfio okk and
Thanks for helpđ
0
đđąđąđđš đđĄđđČđđ„ and the other pseudo selector