OnlineCBT Logo OnlineCBT
HTML Tutorial
HTML · LESSON 40

Header, Footer and Main

By Ratan Updated: 16 Oct 2026

Structure web page layouts using <header>, <footer>, and <main> semantic landmark tags.

Level: Beginner to Advanced
Duration: ~60 Mins Deep-Dive

1. The Element

The element represents introductory content for its nearest ancestor sectioning container, typically housing logos, site headings, and search bars:


  
  

2. The
Element

The

element represents the central, dominant content unique to that specific document. There must be only one visible
element per HTML page. It must not contain content repeated across pages like sidebars, copyrights, or site banners.

3. The
Element

The

element contains concluding information about its nearest sectioning ancestor: authorship, copyright, legal disclaimer links, and social contact links:


📝 Live Lesson Practice

HTML/CSS JavaScript Python C++ C PHP
⌨️ Practice Inputs (लाइव इनपुट भरें) (खाली होने पर RED, भरने पर GREEN underline)
💻 Code Editor (Monaco VS Code Engine)
👀 Live Preview
पता संपर्क करें

+91 7877547686

ई-मेल

onlinecbtportal@gmail.com

हेल्पलाइन नंबर

+91 7877547686


डाउनलोड करने के लिए क्लिक करें
Get it on Google Play

ऐप डाउनलोड करने
के लिए Google Play पर
उपलब्ध है

WhatsApp Chat