Home >Web Front-end >CSS Tutorial >Commonly used pseudo-classes in CSS

Commonly used pseudo-classes in CSS

王林
王林forward
2023-09-06 19:53:021171browse

Commonly used pseudo-classes in CSS

The following are some commonly used pseudo-classes

Value

Description

:link

Use this class for Add special styling to unvisited links.

:visited

Use this class to add special styling to visited links.

:hover

Use this class to add special styles to an element when the mouse is hovering over it.

:active

Use this class to add special styles to active elements.

:focus

Use this class to add special styles to an element while the element gets focus.

:first-child

Use this class to add a special element to the first child of some other element style.

:lang

Use this class to specify the language to be used in the specified element.

The above is the detailed content of Commonly used pseudo-classes in CSS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete