Semantic Section Tag
Predict Output Easy
Question
How does <section> render by default?
Code
<section>Content here</section>
Hint
Semantic tags like section are block-level.
Explanation
The <section> element renders as a block-level element by default, taking up the full width and starting on a new line, just like a <div>. The difference is semantic: <section> indicates a thematic grouping of content, often with a heading. This improves document structure for SEO and accessibility.
Related Resources
Related Lessons
- HTML Semantic Tags
Learn semantic HTML.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.