Answer: Selectors are the part of CSS rule set. CSS selectors select HTML elements according to its id, class, type, attribute etc. There are several different types of selectors in CSS. CSS Element Selector.
1. Type, class, and ID selectors. This group includes selectors that target an HTML element such as an <h1> .
2.Attribute selectors. This group of selectors gives you different ways to select elements based on the presence of a certain attribute on an element:
3.Pseudo-classes and pseudo-elements.
4.Combinators.