Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 7 lesson 4 HTML

<!DOCTYPE html>
<html>
<head>
<title>My web page</title>
</head>
<body>
<div style="background-color:orange; text-align:center">
<h1>Neymar</h1>
<p>footballer</p>
</div>
</body>


</html>

The error showing change <div> into background color to orange
by

1 Answer

sam5epi0l
Here is the correct code:

<!DOCTYPE HTML>
<html>
<head><title>Website</title></head>
<body>
<div style="background-color:orange">
<h1></h1>
<p></p>
</div>
<div>
<div>Sidebar</div>
<div>Main</div>
</div>
</body>
</html>

Login / Signup to Answer the Question.