0
What is the use of (:focus)pseudo class in css
Difference between :focus pseudo class and other pseuso selector
6 ответов
+ 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