×
×
Correct!

Add the correct HTML attribute to make the H1 element red.

<!DOCTYPE html>
<html>
<head>
<style>
#myheader {color:red;}
</style>
</head>
<body>

<h1 id="myheader">My Home Page</h1>

</body>
</html>
<!DOCTYPE html>
<html>
<head>
<style>
#myheader {color:red;}
</style>
</head>
<body>

<h1 id='myheader'>My Home Page</h1>

</body>
</html>

Not Correct

Click here to try again.

Correct!

<!DOCTYPE html>
<html>
<head>
<style>
#myheader {color:red;}
</style>
</head>
<body>

<h1 >My Home Page</h1>

</body>
</html>




×

Reset the Score?

This will reset the score of ALL 106 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 106 HTML exercises.

Share your score:



Get Certified!

Take our HTML Developer Certificate to prove that you have fundamental knowledge of web development using HTML.