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

How to create <div> below the header <div> and how to create two more <div> in Main

HTML Lever-7 Lesson-4
Create a new <div> below the Header <div>
Then create 2 more <div> in the Main <div>, one for Sidebar and one for Main Content.
Write Sidebar inside the Sidebar <div> and Main inside the Main Content <div>
by

1 Answer

kshitijrana14
Try this one
<!doctype html>
<html>
<head>
<title>Studytonight</title>
</head>
<body>
<div style="background-color:orange">
<!--Heading-->
<h1>User name</h1>
<p>My name is </p>
</div>
<div>
<div>sidebar</div>
<div>Main</div>
</div>
</body>
</html>

Login / Signup to Answer the Question.