CSS Selectors
Applying CSS to Different Parts of HTML
1. The element selector targets elements based on their HTML tag name.
- Class selectors target elements based on the value of the class attribute.
- ID selectors target elements based on the value of the id
attribute.
- Attribute selectors target elements based on their attributes and values.
- The universal selector targets all elements.