HTML chapters

Chapter 16 of 17

HTML reference and accessibility checklist

Try this in our HTML Compiler →

The idea

Choose markup by meaning: h1–h6 for headings, p for paragraphs, a for navigation, button for actions, ul/ol for lists, and table for comparable records. Use native elements before recreating their behaviour with divs. A clickable div lacks a button's keyboard and focus behaviour.

Worked example

<h2>Practice checklist</h2>
<ul>
  <li>Use meaningful headings.</li>
  <li>Label every input.</li>
  <li>Describe useful images.</li>
</ul>
<button type="button">Check my work</button>

What to check

This is a reference example, not a working checker. Every visible action should do something useful before the page is published.

Practice task

Review your own document against the three checklist items. Use a link for a destination and a button for an action.

Check your understanding

Explain the result in your own words before changing the example. Change one thing at a time, compare the result with your prediction, and keep the version that demonstrates the concept clearly.

Try it yourself

Output
Ctrl/Cmd+Enter runs · Ctrl/Cmd+S downloads the project · Local auto-save is always on