a:hover
Why is it called a “pseudo-class”?
Are there any similarities with the concept of “class”?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In CSS terms, a class is a selector that starts with a full stop, e.g.
It would be used in the form
This use of “class” is more in the sense “a set or category of things having a common characteristic and differentiated from others by kind or quality”, rather than borrowing from OO terminology.
A pseudo class is “not quite a real one” as the user agent defines when and/or how much content qualifies (like
:hover,:active, etc).