Account
Categories

Header Div


Definition:

The top section of the webpage is to be made; you can use the Header Div.

You write class="header" in the div element to show that the div is used for the top section of the webpage.

This section is called the Header Div.

Syntax:

<div class="header">
    Header Content
</div>

Example:

<div class="header">
    <h1>Header-section</h1>
</div>

Header Div Layout Structure:

Header Div
Header-section
Main Content Area
Footer Area
www.edutation.com
Home | Courses | Contact
Learn HTML, CSS,
JavaScript & PHP
© 2026 Edutation