HTML · The document layer
What is HTML and what is it responsible for?
Short answer
HTML is the markup language that gives web content structure and meaning. It describes headings, paragraphs, links, images, forms and other elements so browsers, assistive technology and crawlers can interpret the page.
HTML stands for HyperText Markup Language. It is not a programming language: it has no variables, loops or logic. Its job is to label content so the browser knows what each piece is, not to decide exactly how it looks.
The separation of concerns is the key idea. HTML provides structure and meaning, CSS handles presentation, and JavaScript handles behaviour. When those layers are respected, the page works better for screen readers, search engines and people who disable styles or scripts.
<article>
<h1>Daily Standup</h1>
<p>Notes from the team sync.</p>
<a href="/archive">Read the archive</a>
</article>What HTML is responsible for
- Defining the document structure, such as head and body
- Describing content meaning, such as headings, lists and articles
- Exposing interactive controls that work with keyboards and assistive technology
- Carrying metadata that controls rendering, indexing and sharing
- Providing the accessibility tree that browsers and screen readers build on
Follow-ups you should expect
Interviewers use these to check whether the first answer was understanding or memorisation.
- 1Is HTML a programming language?
- 2How do HTML, CSS and JavaScript divide responsibility?
- 3Why does semantic markup matter beyond appearance?
- 4What happens when a browser encounters invalid HTML?
Say it in the interview
HTML is the markup language that gives content structure and meaning. I use elements to say what something is: a heading, a paragraph, a navigation region or a form control. CSS then handles presentation and JavaScript handles behaviour. That separation matters because browsers, screen readers and crawlers all rely on the semantics I choose, not just on how the page looks.
Use this as a model, not a script. Saying it in your own words is what makes it survive follow-up pressure.
Related questions
Reading is step one
Now say it out loud.
Understanding an answer and delivering it under pressure are different skills. Rehearse this topic in a live HTML mock interview and get scored feedback on depth, clarity and confidence.