Paragraph before the list
- First list item
- Second list item
Another paragraph
🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀
✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python
Take our "AI in Tech Jobs" survey and win 3 months free Treehouse!
New No-Code Track! 🚀 New videos dropping every week—start learning today!
🤑 Join the Treehouse affiliate program and earn 25% commission!
🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀
✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python
Consider the following CSS and HTML:
CSS:
'article p + ul li:first-child { color: darkred; }'
HTML:
'
Paragraph before the list
Another paragraph
Which of the following statements is true regarding the above CSS rule?
Choose the correct answer below:
It will not apply any color to the list items because the selector is incorrect.
It will apply the color darkred to all list items inside the <ul>
that comes immediately after any <p>
inside the <article>
.
It will apply the color darkred to the first list item in the <ul>
after any <p>
inside the <article>
.
It will apply the color darkred to the first list item only if the <ul>
comes immediately after the first <p>
inside the <article>
.
There was an error while reporting the question. Please try again, or contact support directly.
Your feedback has been submitted.
Thank you!
If you continue experiencing problems, please contact support at help@teamtreehouse.com.
Quizzes are the best way to test your knowlege. Sign up for Treehouse today and prove yourself. We guarantee 100% satisfaction.