×
×
Correct!
Set the background-color to red, of any <p> element that are the first child of any element.
<style>
@(13) {
background-color: red;
}
</style>
<body>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
<style>
p:first-child {
background-color: red;
}
</style>
<body>
<p>This is a paragraph.</p>
<p>This is a paragraph.</p>
</body>
Not CorrectClick here to try again. Correct!<style>w3exercise_input_no_0{ background-color: red; } </style> <body> <p>This is a paragraph.</p> <p>This is a paragraph.</p> </body> |
This will reset the score of ALL 138 exercises.
Are you sure you want to continue?