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

Commonly used pseudo-classes in CSS

王林
Release: 2023-09-06 19:53:02
forward
1162 people have browsed it

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template