Interview Question

What is the main tag?

`<main>` should be used for its proper HTML purpose.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

`<main>` is the element for the page’s main unique content. • A page should normally have one visible `<main>` element. • Browsers apply the native parsing and behavior defined for this element. • Using its native meaning helps assistive technology understand the content when the element has accessibility semantics.

💡 Simple Example

<main><h1>Lesson</h1></main>

⚡ Quick Revision

`<main>` should be used for its proper HTML purpose.