- What is CSS?
- What is CSS for?
- CSS syntax
- CSS Modules
- CSS Specifications
- Browser support information
- Getting started with CSS rules
- Adding CSS to our document
- Styling HTML Elements
- Adding a Class
- Styling things based on their location in a document
- Styling things based on state
- Combining selectors and combinators
- Essentials of CSS Quiz 5 questions
Quiz Question 1 of 5
You have the following HTML structure:
<body>
<article>
<p>First paragraph</p>
<p>Second paragraph with <span class="highlight">highlighted text</span></p>
<ul>
<li>List item with <em>emphasis</em></li>
<li>Another item</li>
</ul>
<p class="highlight">Third paragraph</p>
</article>
</body>
Which CSS selector would correctly apply a background color of blue only to the <span>
element within the second paragraph?
Choose the correct answer below: