- 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
Given the following HTML structure:
<div class="container">
<header>
<h1>Main Heading</h1>
<p class="intro">Introduction paragraph</p>
</header>
<section>
<h2>Subheading</h2>
<p>Section paragraph</p>
</section>
</div>
Which CSS rule will change the text color to green for any <p>
element within a <header>
that is itself inside a <div>
with the class container?
Choose the correct answer below: