CSS Selectors
CSS selectors allow you to select and manipulate HTML elements. They are used to "find" (or select) HTML elements based on their id, class, type, attribute, and more.
- The element Selector
- The element selector selects elements based on the element name.
- The id Selector
- The id selector uses the id attribute of an HTML element to select a specific element.
- The class Selector
- The class selector selects elements with a specific class attribute.
- Grouping Selectors
- With elements having the same style definitions, you can group the selectors, to minimize the code.