CSS Selector
CSS selector is used to find HTML element.CSS selector targets the HTML element so that CSS rule can be apply very easily.
Kinds Of CSS Selector
- Universal Selector
- Simple Selectors
- Combinator selectors
- Pseudo-class selectors
- Pseudo-elements selectors
- Attribute selectors
Universal Selector
Universal selector(*
) selects all the HTML elements and applies CSS rule to all the HTML elements inside the document.
Note:CSS selector is used to finding the HTML elements inside the document. Once, the HTML element finds out then the CSS rule has been applied to that element.