:focus pseudo-class


In the article about pseudo-classes in User-action pseudo classes section is told that
" :focus β€” only applies if the user focuses the element using keyboard controls."
But as far as I know we can focus an element by clicking on it, do we? Moreover, on the focus reference page is mentioned that user can click on the element.

Is it a mistake in text in tutorial?

Hello @DenisM

I agree that it’s a mistake in the tutorial. If you like you can open an issue on GitHub: New issue on mdn/content.


1 Like