CSS Combinators
Overview
Sometimes, it is useful in CSS to be able to select very specific elements or groups of elements from a document without defining and applying another class. We can combine selectors in useful ways to get descendants, child, adjacent siblings, and general siblings (all the next siblings).
"They are called combinators, because they combine other selectors in a way that gives them a
useful
relationship to each other and the location of content in the document." - MDN
Prepare
- Read: 📃 Combinators – MDN
Activity Instructions
- Complete the four combinator exercises from w3schools.com.
- Take a screenshot of your completed exercises from the website and save the file it to your "week04" images folder.
Submission
- Update your home portal page with a link to a screenshot of your w3schools.com combinator exercise.
- Commit and post your updates to your wdd230 GitHub Pages repository.