Coding task · HTML and CSS course · Module 3: CSS Basics
Descendant and Sibling Selectors
Use advanced selectors like reading hieroglyphs.
Task
In style.css, uncomment four rules: the descendant selector .temple p, the child selector .temple > p, the descendant selector .chamber span and the adjacent sibling selector h2 + p. Observe which elements get which styles.