HTML Interview Questions
Common HTML interview questions with clear answers and links into Avora visual guides and interactive lessons.
What is HTML?
HTML is a markup language that describes the structure and meaning of webpage content using elements and tags.
Is HTML a programming language?
No. HTML labels content. Logic belongs in JavaScript; presentation belongs in CSS.
What is the difference between <div> and <section>?
<div> is a generic container with no semantic meaning. <section> marks a thematic grouping of content and improves structure for accessibility and outline.
Why use semantic HTML?
Semantic elements communicate meaning to browsers, search engines, and assistive technologies — not just visual layout.
How many <h1> elements should a page have?
Prefer a single <h1> that names the page topic; use <h2> and below for sections.
