×
×
Correct!
Set the background color to "red" for <a> elements that have a
<style>
@(18) {
background-color: red;
}
</style>
<body>
<a href="https://w3schools.com">w3schools.com</a>
<a href="http://disney.com" target="_blank">Disney.com</a>
<a href="http://wikipedia.org" target="_top">wikipedia.org</a>
</body>
<style>
a[target="_blank"] {
background-color: red;
}
</style>
<body>
<a href="https://w3schools.com">w3schools.com</a>
<a href="http://disney.com" target="_blank">Disney.com</a>
<a href="http://wikipedia.org" target="_top">wikipedia.org</a>
</body>
<style>
a[target='_blank'] {
background-color: red;
}
</style>
<body>
<a href="https://w3schools.com">w3schools.com</a>
<a href="http://disney.com" target="_blank">Disney.com</a>
<a href="http://wikipedia.org" target="_top">wikipedia.org</a>
</body>
<style>
a[target=_blank] {
background-color: red;
}
</style>
<body>
<a href="https://w3schools.com">w3schools.com</a>
<a href="http://disney.com" target="_blank">Disney.com</a>
<a href="http://wikipedia.org" target="_top">wikipedia.org</a>
</body>
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 138 exercises.
Are you sure you want to continue?