Skip to main content

Command Palette

Search for a command to run...

css selectors

Published
•1 min read•View as Markdown

css selectors are used for selecting the html element that you want to style and they are the fundamental part of working with css. selectors are patterns used to select the elements to which a set of styles will be applied. css selector can be used to select elements based on their type ,class id , attributes , or dynamic state or position.

types of css selector

we can divide css selectors into five categories.

(1). simple selectors

(2). combinators

(3). attribute selectors

(4). pseudo selectors

(5). pseudo-element selectors