Action Pseudo-class (:hover, :active, :focus, :visited) - Element state
Table of Contents
About
Action pseudo class
Articles Related
Example
:hover will apply a style when the user hovers over the element specified by the selector.
<p>Hello, hover on me to see me in red</p>
p:hover {
color: red;
}
Management
Dev Tool
In the browser developer tool, you can change the state of an element to test it.