
geeksforgeeks.org
https://www.geeksforgeeks.org/css/css-selectors/
CSS Selectors - GeeksforGeeks
CSS Selectors are used to target HTML elements on your pages, allowing you to apply styles based on their ID, class, type attributes, and more. There are mainly 5 types of selectors.' Basic selectors in CSS are simple tools used for selecting by HTML element name (e.g., h1), class (.class Name), ID (#idName), or universally (* for all elements). 1.