Why are CSS selectors used in HTML?
Selectors are the basic concept for styling HTML elements. Selectors are used to specifying which HTML elements will receive which styles. There are different types of selectors such as class type, ID type, and, attributes type, etc
Different types of Selectors in CSS are as follows
ID selectors
Class selectors
Universal selectors
General sibling selectors
Descendent selectors
Adjacent sibling selectors