Action Pseudo-class (:hover, :active, :focus, :visited) - Element state

> (World Wide) Web - (W3|WWW) > Selector API

1 - About

Action pseudo class

3 - 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;
}

Advertising

4 - Management

4.1 - Dev Tool

In the browser developer tool, you can change the state of an element to test it.

web/selector/action.txt · Last modified: 2019/02/09 11:43 by gerardnico