Menu
×
×
Correct!
Exercise:Add two classes to the H1 element, to make the background pink and the color red.
<!DOCTYPE html>
<html> <head> <style> .intro {background:pink;} .special {color:red;} </style> </head> <body> <h1 @(21)>My Home Page</h1> </body> </html>
<!DOCTYPE html>
<html> <head> <style> .intro {background:pink;} .special {color:red;} </style> </head> <body> <h1 class="intro special">My Home Page</h1> </body> </html>
<!DOCTYPE html>
<html> <head> <style> .intro {background:pink;} .special {color:red;} </style> </head> <body> <h1 class='intro special'>My Home Page</h1> </body> </html>
<!DOCTYPE html>
<html> <head> <style> .intro {background:pink;} .special {color:red;} </style> </head> <body> <h1 class="special intro">My Home Page</h1> </body> </html>
<!DOCTYPE html>
<html>
<head>
<style>
.intro {background:pink;}
.special {color:red;}
</style>
</head>
<body>
<h1 class='special intro'>My Home Page</h1>
</body>
</html>
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 88 exercises.
Are you sure you want to continue?