Types of CSS Selectors | CSS

CSS SELECTORS

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

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s