If you do not know how a pseudo class works, here is what you should do:
- The definition of pseudo is: "not genuine; sham." (tku Google)
- Go to MDN (Mozilla Developer Network) and read about pseudo classes.
A quick excerpt from MDN is:
A CSS pseudo-class is a keyword added to selectors that specifies a special state of the element to be selected. For example :hover will apply a style when the user hovers over the element specified by the selector.
Basically, you could have class
pseudo (remember: "not genuine; sham") class. So its a class, but it's not really a class. A pseudo class is defined with a
: after the selector and before the pseudo class. For example:
There are also pseudo elements. They are defined with
::. You can read about them here.
In the future, please research your question before asking it, in alignment with the stackoverflow guidelines on asking