Pseudo-Classes
Part of the CSS Mastery section of Coddy's HTML journey — lesson 7 of 43.
Interactive pseudo-classes let you change the look of elements when users do things like move their mouse over them, click them, or select them. They help make your website feel more responsive and fun to use.
The syntax of pseudo-classes:
selector:pseudo-class {
property: value;
}This lesson includes a short quiz. Start the lesson to answer it and track your progress.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
Cheat sheet
Interactive pseudo-classes change element appearance based on user interactions. They use the syntax:
selector:pseudo-class {
property: value;
}Try it yourself
This lesson doesn't include a code challenge.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in CSS Mastery
1Selector Mastery – Combination
IntroductionDescendant SelectorChild SelectorAdjacent Sibling SelectorGeneral Sibling SelectorRecap Challenge