Types of CSS Selectors | CSS

Selectors  are used to define rules that apply to only a selected set of HTML elements. Selector identifies those markup elements to which the CSS style(s) will be applied.

Types of CSS Selectors:

  • Universal Selector
  • Attribute Selector
  • Class Selector
  • ID Selector
  • Pseudo-classes
    • Dynamic pseudo-classes
    • The target pseudo-class
    • The language pseudo-class
    • Structural pseudo-classes
    • The negation pseudo-class
  • Combinators 
    • Descendant combinator
    • Child combinator
    • Adjacent sibling combinator
    • General sibling combinator