Skip to content
Justice Tech School

Accessibility

Use semantic tags, labels and aria attributes.

Example
function Search() {
  return (
    <form role="search">
      <label htmlFor="q">Search</label>
      <input id="q" type="search" />
      <button aria-label="Submit search">Go</button>
    </form>
  );
}

Exercise

ARIA label.

<button -label="x">

Quiz Test

Why add aria-label?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.