...

/

How It Works: Defining Visual Behavior with CSS

How It Works: Defining Visual Behavior with CSS

In this lesson, we'll understand how to define visual behavior with CSS from the previous exercise.

How it works

The hover is a “pseudo-class” in CSS. The h1:hover style represents the visual settings that should be applied when the mouse is over a first-level heading. As soon as the mouse leaves the heading, the original style is restored. That is how the colors changed when ...

Access this course and 1400+ top-rated courses and projects.