paint-brush
Top 12 CSS Selectors You Should Knowby@victorike
173 reads

Top 12 CSS Selectors You Should Know

by Victor Ikechukwu5mAugust 13th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

CSS selectors are what allows us to target specific Html Elements and apply styles in the declaration block to them. The biggest key player in understanding CSS is understanding selectors and how they work. The universal selector is donated by an asterisk and selects all elements regardless of their type present on the page. The class selector is probably the most useful and versatile selector, it selects elements that have given the class value in their class attribute. The ID selector is the most powerful in terms of CSS specificity, just like the class selector, targets specific elements in our markup.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Top 12 CSS Selectors You Should Know
Victor Ikechukwu HackerNoon profile picture
Victor Ikechukwu

Victor Ikechukwu

@victorike

Writing Articles That Helps Beginners get into tech - "When one teaches, two learn."

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

About Author

Victor Ikechukwu HackerNoon profile picture
Victor Ikechukwu@victorike
Writing Articles That Helps Beginners get into tech - "When one teaches, two learn."

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
Also published here
Learnrepo
Coffee-web