I’m in the CSS basic course, step 12 “Chaining Selectors” and it states:
When writing CSS rules, it’s possible to require an HTML element to have two or more CSS selectors at the same time.
This is done by combining multiple selectors, which we will refer to as chaining. For instance, if there was a
.special class for
h1 elements, the CSS would look like:
In the previous step it mentioned that IDs are the most specific and will override all other selectors. Is it possible to chain id and class selectors together, or even all 3 to keep CSS formating to a very specific area when id, class, and tag selectors all share a common line of code?