Showing posts with label types of CSS selectors. Show all posts
Showing posts with label types of CSS selectors. Show all posts

Friday, September 19, 2014

What are CSS Selectors?

CSS Selectors
CSS  selectors are used to "select" elements/tags on an HTML page to style them. The properties are set in a rule set, you know every rule set is combination of CSS selector and properties block. These properties only apply to the elements mentioned in rule set.


Types of CSS Selectors
Following are the types of CSSS Selectors:-
  • Universal Selector
  • Type Selector
  • Class Selector
  • ID Selector
  • Attribute Selector