paint-brush
Understanding Pseudo-Class Selectorsby@mcdenny
12,650 reads
12,650 reads

Understanding Pseudo-Class Selectors

by Denis Oluka5mNovember 25th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Pseudo-classes are CSS classes used to define the state of an element. They target elements that can’t be targeted with combinators or simple selectors like id or class. They are used to select elements based on their attributes, states, and relative position. A pseudo-class has a simple syntax and is identified by a colon (: pseudo-selector :pseudo-class { property :value; }) Selects the element that is at the root of the document specifically theelement unless you are specifically working in some other environment.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Understanding Pseudo-Class Selectors
Denis Oluka HackerNoon profile picture
Denis Oluka

Denis Oluka

@mcdenny

Full-Stack Developer

About @mcdenny
LEARN MORE ABOUT @MCDENNY'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Denis Oluka HackerNoon profile picture
Denis Oluka@mcdenny
Full-Stack Developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite