Red and blue

Report a typo

Take a look at the following HTML code:

<section>
    <p>1</p>
    <div>
        <p>2</p>
    </div>
</section>

What numbers will be colored red and blue if the following CSS style set (and only this one) is applied?

section p {
    color: blue;
}

section > p {
    color: red;
}

Tip: Remember about the special case of CSS cascade: if some property of an element is changed several times in the stylesheets linked to the HTML page, the last of the mentioned values will be applied.

Select one option from the list
___

Create a free account to access the full topic