Accessibility Guard — HTML

Rattan archway keeper: 22 levels rewriting markup with semantics, ARIA, focus and WCAG contrast. Real axe-core, a screen reader simulator and a keyboard runner.

What the levels ask

  1. This image is missing its alt. Add a short description so the SR reads out the dish.
  2. Connect each input to its matching label (use for or wrap it with <label>).
  3. The headings jump from h2 to h4. Reorder them so they go in sequence with no skipped level.
  4. "Hapus" (Delete) changes data, so it must be a <button>, not an <a>. "Lihat detail" (View details) is navigation, so <a href> is fine.
  5. This page only uses <div>. Refactor it into <header>, <nav>, <main>, <footer>.
  6. #888 text on a #fff background is only 3.5:1. Darken the text or lighten the background to pass AA.
  7. The button holds only an SVG icon. The SR needs a name. Use aria-label="Hapus item" (or visually hidden text). Keep the word "Hapus" (delete) in the name.
  8. Connect the field to its error message with aria-describedby and mark it with aria-invalid="true".
  9. Add aria-live="polite" (or role="status") to the region that changes dynamically.
  10. Use <dialog> (native focus trap) OR role="dialog" aria-modal="true" + aria-labelledby pointing to the title.
  11. The toggle button needs aria-expanded="true|false" + aria-controls="<id-region>".
  12. Use role="tablist" > role="tab" (with aria-selected + aria-controls) > role="tabpanel" (with aria-labelledby).

And more, 22 levels in all.