Pseudo class


In the course Learn HTML and CSS, I did not learn about pseudo class. Could someone please clarify what a pseudo class is?


I'll explain it with an example,

a {
  text-decoration: none;

a:hover {
  text-decoration: underline;

That :hover right there is the pseudo class. It's added to your a.

In this case it's used to define the state of the a element when you hover your mouse over it.

So the CSS syntax is:

selector:pseudo-class {


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.