HTML mock tests
Test yourself on the whole course, against the clock: questions from every module, then coding problems you solve and run right here. Your score comes at the end, with every answer explained.
Each mock test has 12 questions drawn from the lessons, and 45 minutes on the clock, which keeps running if you reload. Questions are worth a point each. Score 60% or more to pass; your best score is kept.
- 01Mock test 112 questions · 45 minutes · 12 points
- 02Mock test 212 questions · 45 minutes · 12 points
- 03Mock test 312 questions · 45 minutes · 12 points
Part A · 12 questions
- Which element marks text as important, not just bold?
- Under what condition do browsers allow a video to autoplay?
- Where must a nested list go?
- What is the minimum WCAG contrast ratio for normal-sized text?
- How many <main> elements should a page have?
- How do you connect a label to an input with id="email"?
- How many elements on a page may share the same id?
- Which attribute stops a form from being submitted while a field is empty?
- What is the difference between disabled and readonly?
- What is the difference between <div> and <span>?
- How do you show the text <p> on a page without creating a paragraph?
- How does a datalist differ from a select?
Part A · 12 questions
- Which element keeps spaces and line breaks exactly as written?
- Why does a video tag often contain several <source> elements?
- Which element creates a numbered list?
- What alt text should a purely decorative image have?
- What happens to several spaces typed between words in a paragraph?
- What does the defer attribute do on a script tag?
- Which part contains everything that is displayed on the page?
- Which input type shows a keyboard with an @ key on phones?
- What is the alt attribute for?
- What does target="_blank" do?
- How do you make one cell span three columns?
- What does HTML describe?
Part A · 12 questions
- Which of these is a void (empty) element with no closing tag?
- Which element has two classes?
- Why must the server validate data even when the form uses browser validation?
- What makes several radio buttons behave as one group, where only one can be chosen?
- With pattern="[0-9]{4}", which value is valid?
- What alt value should a purely decorative image have?
- Which element should wrap a page's main navigation links?
- Which link jumps to the element with id="contact" on the same page?
- Which attribute gives the destination of a link?
- Which is a closing tag?
- What do Open Graph tags control?
- Which attribute shows the play and pause buttons on a video?