HTML · Semantics · Fresh / Intern · Concept
What does semantic HTML mean, and why do interviewers care?
Short Interview Answer
Using elements for meaning (header, nav, main, article) rather than only divs for layout.
Detailed Explanation
Semantic tags communicate document structure to browsers, assistive tech, and crawlers. They improve accessibility tree quality, default keyboard behavior, and SEO signals. Layout still uses CSS; semantics describe role. Prefer button over clickable divs, and lists for list content.
Interview Tip
Tie semantics to a11y + SEO, not just clean code.
Common Mistake
Thinking semantic HTML replaces ARIA entirely.