File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,24 @@ <h2>8. applied rule</h2>
210210<style>< br /> ul#awesome {< br /> color: red;< br /> }< br /> ul.shopping-list li.favorite span {< br /> color: blue;< br /> }< br /> </style>
211211</ code > </ pre >
212212< p > < strong > Answer:</ strong > blue</ p >
213+ < br >
214+ < strong > d.</ strong >
215+ < pre > < code >
216+ <style>< br /> ul#awesome #must-buy {< br /> color: red;< br /> }< br /> .favorite span {< br /> color: blue!important;< br /> }< br /> </style>< br />
217+ </ code > </ pre >
218+ < p > < strong > Answer:</ strong > blue</ p >
219+ < br >
220+ < strong > e.</ strong >
221+ < pre > < code >
222+ <style>< br /> ul.shopping-list li .highlight {< br /> color: red;< br /> }< br /> ul.shopping-list li .highlight:nth-of-type(odd) {< br /> color: blue;< br /> }< br /> </style>< br />
223+ </ code > </ pre >
224+ < p > < strong > Answer:</ strong > blue</ p >
225+ < br >
226+ < strong > f.</ strong >
227+ < pre > < code >
228+ <style>< br /> #awesome .favorite:not(#awesome) .highlight {< br /> color: red;< br /> }< br /> #awesome .highlight:nth-of-type(1):nth-last-of-type(1) {< br /> color: blue;< br /> }< br /> </style>< br />
229+ </ code > </ pre >
230+ < p > < strong > Answer:</ strong > red</ p >
213231ref: < a href ="http://davidshariff.com/quiz/ "> David Shariff: quiz</ a >
214232</ div >
215233<!-- <div id="optional_tag">
You can’t perform that action at this time.
0 commit comments