HTML5 Cheat Sheet 2026
The 30 highest-yield HTML5 facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
55 questions
75 min time limit
73.00% to pass
- The element in HTML5 is used to: → Encode dates and times in a machine-readable format
- Which canvas method is used to draw an arc or circle? → arc()
- The element______ simply combines elements within an enclosing dd tag, though it may also correlate them with a caption defined by a dt tag. → object
- Which HTML5 input type should be used to allow users to pick a color via a color picker? → color
- What happens to a Dedicated Web Worker when the web page that created it is closed? → The worker is automatically terminated by the browser
- What does the element typically contain? → Copyright, contact, and authorship information
- Which canvas property sets the color or style used to fill shapes? → fillStyle
- Which HTML5 element and attribute combination is essential for responsive web design on mobile devices? →
- Which HTML5 element represents a scalar measurement within a known range, such as a disk usage indicator? →
- What is the purpose of the HTML5 History API? → Allows manipulation of the browser session history without page reloads
- What is the purpose of the 'placeholder' attribute in HTML5 form inputs? → Displays hint text inside the field that disappears when the user types
- What HTML5 element is used to provide text tracks (subtitles or captions) for a video? →
- Which HTML5 feature allows embedding scalable vector graphics directly in an HTML document? → Inline SVG
- Which HTML5 attribute allows you to validate an input field value against a regular expression? → pattern
- What is the purpose of the CSS 'clamp()' function in responsive design? → Sets a value that scales between a minimum and maximum based on a preferred value
- What is the correct semantic element to use for the primary content area of a web page? →
- Which HTML5 feature allows a web page to work offline by caching resources? → Service Workers with Cache API
- Which HTML5 element is used to display a disclosure widget from which users can retrieve additional information? →
- Which API is used to capture audio and video from a user's webcam and microphone? → MediaDevices.getUserMedia()
- Which element is used inside or to specify multiple media file sources? →
- Which postMessage() syntax correctly transfers (not copies) an ArrayBuffer to a Web Worker? → worker.postMessage(buffer, [buffer])
- What is the role of the element in HTML5? → Specifies the base URL for all relative URLs in the document
- What does the 'loop' attribute on an HTML5 element do? → Causes the audio to restart automatically when it finishes
- What is the name of the canvas API? → immediate-mode
- What does the 'message' event's 'data' property contain when received in a Web Worker? → The value passed to postMessage() by the sender, structured-cloned
- Which of the following elements is used to highlight content in the same way as a highlighter pen is used to highlight key text in a book? → mark
- The 'autocomplete' attribute on an HTML5 form field controls: → Whether the browser can automatically fill in the field value
- Which HTML5 API gives JavaScript programmatic control over media playback, seeking, and volume? → HTMLMediaElement API
- Which method of the Geolocation API watches for position changes and calls a callback continuously? → watchPosition()
- What does the Geolocation API's getCurrentPosition() method do? → Retrieves the device's current geographic coordinates asynchronously
Turn these facts into recall:
What Practice Test Geeks adds beyond an AI chat for HTML5
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length HTML5 mock exam — 55 questions in 75 minutes with a 73% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed HTML5 question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- HTML5 flashcards built from the same question bank.
- Free HTML5 practice tests with the correct answer shown after each question.
Was this helpful?