The <main> element identifies the dominant content of a document. Use it with meaningful structural elements to make page hierarchy clearer, supporting maintainability, accessibility, and cross-browser compatibility. section 2.1
In an interview or implementation, demonstrate that you can:
- Place the primary article content inside <main>, rather than choosing elements only for their default visual presentation. section 2.1
- Combine <main> with <article>, <header>, <section>, headings, paragraphs, and a footer to express document hierarchy. section 2.1
- Explain how semantic choices relate to accessibility, maintainability, SEO, and practical React component implementation. section 2.1
React article layout
A BlogPost component wraps its article in <main>, places the title and subtitle in <header>, maps article sections into <section> elements, and renders subsection headings with paragraphs.



