File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -188,15 +188,26 @@ <h2>7. David Shariff </h2>
188188</ div >
189189< div id ="download_order ">
190190 < h2 > 8. applied rule</ h2 >
191- < p > < strong > Question:</ strong > What is the color of text sausage?</ p >
191+ < p > < strong > Question:</ strong > What is the color of text sausage for he following rule?</ p >
192+ < strong > html:</ strong >
192193 < pre > < code >
193- <style> < br /> ul { < br /> color: red; < br /> } < br /> li { < br /> color: blue; < br /> } < br /> </style> < br /> < ul class="shopping-list" id="awesome">< br /> <li><span>Milk</span></li>< br /> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li>< br /> </ul>
194+ <ul class="shopping-list" id="awesome">< br /> <li><span>Milk</span></li>< br /> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li>< br /> </ul>
194195 </ code > </ pre >
196+ < strong > a.</ strong >
197+ < pre > < code >
198+ <style>< br /> ul {< br /> color: red;< br /> }< br /> li {< br /> color: blue;< br /> }< br /> </style>
199+ </ code > </ pre >
200+ < p > < strong > Answer:</ strong > blue</ p >
201+ < br >
202+ < p > < strong > b.</ strong > </ p >
203+ < pre > < code >
204+ <style>< br /> .shopping-list .favorite {< br /> color: red;< br /> }< br /> #must-buy {< br /> color: blue;< br /> }< br /> </style>
205+ </ code > </ pre >
195206< p > < strong > Answer:</ strong > blue</ p >
196207< br >
197- < p > < strong > Question: </ strong > What would be color of text sausage? </ p >
208+ < strong > c. </ strong >
198209< pre > < code >
199- <style>< br /> ul li {< br /> color: red;< br /> }< br /> #must-buy {< br /> color: blue;< br /> }< br /> </style> < br /> <ul class="shopping-list" id="awesome"> < br /> <li><span>Milk</span></li> < br /> <li class="favorite" id="must-buy"><span class="highlight">Sausage</span></li> < br /> </ul >
210+ <style>< br /> ul#awesome {< br /> color: red;< br /> }< br /> ul.shopping-list li.favorite span {< br /> color: blue;< br /> }< br /> </style>
200211</ code > </ pre >
201212< p > < strong > Answer:</ strong > blue</ p >
202213ref: < a href ="http://davidshariff.com/quiz/ "> David Shariff: quiz</ a >
You can’t perform that action at this time.
0 commit comments