1. Which element holds the content visitors actually see?
- <head>
- <!DOCTYPE html>
- <body>
- <footer>
Show answer
Answer: <body>
`<body>` contains everything rendered on the page; `<head>` is metadata for the browser.
Lesson: Document Structure
18 questions from the HTML Fundamentals: Structure, Forms and Accessibility course, each with the correct answer and an explanation. Try to answer before you open the answer.
Answer: <body>
`<body>` contains everything rendered on the page; `<head>` is metadata for the browser.
Lesson: Document Structure
Answer: <strong>
`<strong>` communicates importance to assistive tech; `<b>` and `<i>` are purely visual.
Lesson: Text Formatting
Answer: controls
`controls` adds the browser's default playback UI.
Lesson: Audio & Video
Answer: loading="lazy"
Native lazy loading waits until the image is near the viewport.
Answer: <th>
`<th>` marks a header cell — bold and centered by default, and meaningful to assistive tech.
Lesson: Tables
Answer: required
`required` blocks form submission until that field has a value.
Lesson: Basic Validation
Answer: An empty string alt=""
`alt=""` tells screen readers to skip it silently, which is correct for purely decorative images.
Lesson: Alt Text & ARIA
Answer: Embedding a YouTube video or map
iframes commonly embed third-party widgets like videos, maps and payment forms.
Lesson: iframes
Answer: It's inert until JavaScript clones it into the page
Template content is parsed but stays hidden and inactive until explicitly cloned via script.
Lesson: Templates & Custom Elements
Answer: Wrapping every element in generic <div> tags
Overusing generic `<div>` tags instead of semantic elements is a classic beginner habit that hurts accessibility and SEO.
Lesson: Common Beginner Mistakes
Answer: <body>
The body contains everything users see.
Lesson: Common Beginner Mistakes
Answer: <strong>
strong signals importance to assistive technology.
Lesson: Common Beginner Mistakes
Answer: alt=""
An empty alt tells screen readers to skip it.
Lesson: Common Beginner Mistakes
Answer: for (matching the input id)
label for matches the input's id.
Lesson: Common Beginner Mistakes
Answer: Browser validation can be bypassed
Never trust client-side checks alone.
Lesson: Common Beginner Mistakes
Answer: meta viewport
width=device-width, initial-scale=1 enables responsive layouts.
Lesson: Common Beginner Mistakes
Answer: It is inert until JavaScript clones it
Templates are parsed but not rendered.
Lesson: Common Beginner Mistakes
Answer: A unique title and one clear h1
Unique titles and a logical heading structure help search engines.
Lesson: Common Beginner Mistakes