HTML for Frontend Developers
HTML is the markup language that gives a web page its structure and meaning. Elements such as header, nav, main, article and form describe content for browsers, search engines and screen readers. It sits at the bottom of the frontend stack, and CSS and JavaScript both act on it.
Stage: Web Foundations · Part of the Frontend Developer roadmap · Last reviewed 19 November 2026
What to learn in HTML
- Choose semantic elements instead of generic div tags for page regions
- Build a form with labels, input types and native validation attributes
- Write a head section with title, meta description and viewport tag
- Add Open Graph tags so links preview correctly when shared
- Mark up headings in a logical order that outlines the page
HTML interview questions
Why does semantic HTML matter?
Semantic elements tell browsers, assistive technology and crawlers what each part of the page is. A nav or button gets keyboard behaviour and screen reader roles for free, while a styled div needs extra work. It also makes markup easier to read and maintain.
What is the difference between a label's for attribute and wrapping the input in a label?
Both connect the label text to the control so clicking the text focuses the input and screen readers announce it. The for attribute matches the input's id and works when they are apart. Wrapping needs no id, because the nesting itself creates the link.
Where HTML fits in the Frontend Developer roadmap
HTML belongs to the Web Foundations stage (beginner level), which takes about 4 hours. How the web works, plus the HTML and CSS every interface is built on.
Other units in this stage
Back to the full Frontend Developer roadmap