Final HTML Assessment
Forty questions covering the whole path, from document structure to SEO and accessibility. Sample questions only - no answers, no submission.
-
HTML Basics
- What is HTML: The Structure Layer of Every Web Page
- HTML Document Structure: DOCTYPE, html, head and body
- Elements, Tags and Attributes: The Vocabulary of HTML
- HTML Comments: Notes That Ship With Your Code
- Block Level and Inline Elements
- Writing and Running Your First HTML Page
- How a Browser Turns Markup Into a Page
- Text and Formatting
- Links and Navigation
- Images and Media
- Lists
- Tables
-
Forms
- Form Structure: form, action and method
- Input Types: Text, Email, Number, Date and the Rest
- Labels: The Most Important Element in a Form
- Checkboxes, Radio Buttons and Grouping
- select, option, optgroup and datalist
- textarea, File Uploads and Hidden Fields
- Buttons: submit, reset and button
- Built In Form Validation
- GET or POST: What Happens When a Form Is Submitted
- Semantic HTML
- HTML5 Features
- Head and Metadata
- HTML with CSS
- HTML with JavaScript
- Accessibility
-
HTML SEO
- How Google Works: Crawling, Indexing and Ranking
- SEO Friendly HTML Structure
- Titles and Descriptions That Earn Clicks
- Headings and Content Structure for Search
- Internal Linking and Anchor Text
- robots.txt and XML Sitemaps
- Canonical URLs and Duplicate Content
- Structured Data and JSON-LD
- Image SEO
- Core Web Vitals and Mobile Friendliness
- DevTools and Debugging
- Editor Productivity
- HTML Best Practices
- HTML Projects
- Advanced Projects
- Practice and Exams
About this assessment
Forty questions covering everything in this path. They are sample questions only: there is no answer key, no marking and nothing to submit.
That is deliberate. The purpose is to show you what you can explain and what you cannot. A question you can answer confidently in your own words is knowledge you have; one where you reach for a search box is a topic to reread.
How to work through it. Write an answer for each in your own words - two or three sentences, not one line. Then verify by building, validating or testing in the browser, and revisit the note in this path that covers anything you got wrong.
Allow ninety minutes for a first pass.
Section 1: Document structure and elements
- What does the doctype actually do, and what changes if you omit it?
- Explain the difference between a tag, an element and an attribute, using one example.
- What is a void element? Name four, and explain why they take no closing tag.
- Why must
<meta charset="utf-8">appear in the first bytes of the head? - What is the difference between block level and inline elements, and what containment rule follows from it?
- Why does
<p><div>text</div></p>not produce the DOM you wrote? Describe what the parser builds. - What is a boolean attribute? Explain what
required="false"does and why. - Why must an
idbe unique, and name three things that break when it is not.
Section 2: Text, links and media
- How do you decide which heading level to use, and why is that decision not about size?
- Explain the difference between
strongandb, and betweenemandi. - Why does HTML collapse whitespace, and name two ways to preserve it when it is content.
- Given a page at
/blog/2026/rain.html, write links to three different locations using relative paths, and explain each. - What makes link text good or bad? Give one example of each and explain who is affected.
- Explain the difference between a missing
altattribute andalt="". - You are writing alt text for a photograph of a queue outside an office. How would it differ in an article about waiting times versus an article about the building?
- Why do
widthandheightattributes on an image matter even when CSS controls the display size? - Explain
srcsetandsizes. Why issizesrequired rather than inferred? - When should you reach for
picturerather thansrcsetalone?
Section 3: Tables and forms
- What is the real difference between
thandtd, and what does a screen reader do with it? - Explain the column arithmetic that
colspanandrowspanimpose on every row of a table. - When is
scopesufficient, and when do you needheadersandidinstead? - Name three things that break when a form control has an
idbut noname. - Explain what the browser collects and sends when a form is submitted.
- What does an unchecked checkbox submit, and how do you guarantee a value always arrives?
- What groups radio buttons into one choice, and how many tab stops does the group occupy?
- Why is
type="number"the wrong choice for a phone number or a postal code? - Explain why a placeholder is not a label, naming two groups of readers affected.
- When is GET the correct form method, and when is POST required? Give the underlying principle, not just examples.
- Why is client side validation never a security control? What must the server do?
- Explain the difference between styling
:invalidand:user-invalid.
Section 4: Semantics and accessibility
- Two pages look identical, one built from
divelements and one from semantic elements. Name four concrete things the second can do that the first cannot. - Give the test that decides between
article,sectionandaside. - Explain the naming order a browser uses to compute an accessible name.
- What is the first rule of ARIA, and why does
role="button"on adivnot make it a button? - Explain the three values of
tabindexand when each is appropriate. - Why is removing a focus outline a serious problem, and what is the correct alternative?
- Name four ways to hide an element and explain which of them leave it focusable.
Section 5: SEO and performance
- A page is blocked in
robots.txtand carries anoindextag. What actually happens, and why is this the wrong way to remove a page from search? - Explain what a canonical tag does, why it must be absolute, and what goes wrong if every page canonicalises to the home page.
- Name the three Core Web Vitals, what each measures, and one markup change that improves each.
How to use your results
| If you could not answer | Reread |
|---|---|
| Questions 1 to 8 | HTML Fundamentals |
| Questions 9 to 18 | Text and Formatting, Links, Images and Media |
| Questions 19 to 30 | Tables and Forms |
| Questions 31 to 37 | Semantic HTML and Accessibility |
| Questions 38 to 40 | HTML SEO |
A harder second pass
Once you can answer all forty, try this: for each question, explain your answer to someone who does not write HTML. The questions you cannot explain simply are the ones you understand least well, regardless of whether you got them right.
Practice
- Answer all forty in writing, without looking anything up.
- Verify every answer in the browser or in the specification.
- List the five topics you were weakest on and reread those notes.
- Repeat the assessment a week later and compare.