CodeZettaInterview Hub

HTML · Semantics · Junior · Scenario

How do you structure a blog post with semantic HTML?

Short Interview Answer

article containing header (title/meta), optional nav for TOC, sections with headings, footer for author/related.

Detailed Explanation

Keep one h1 for the page title. Nest sections under article. Use time with datetime for publish dates. Avoid wrapping the entire site in article.

Did you know this answer?