DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for A11y tricky quiz
VinΓ­cius Hoyer
VinΓ­cius Hoyer

Posted on

A11y tricky quiz

Considering the following markup, which text will the screen reader read?

<html lang="en">
  <label for="btn">button this click</label>

  <span id="alt-btn">me button click</span>

  <button
    id="btn"
    aria-labelledby="alt-btn"
    aria-label="click this button"
  >
    click me
  </button>
</html>
Enter fullscreen mode Exit fullscreen mode
  • "button this click"
  • "click me"
  • "click this button button"
  • "me button click button"

click here to see the anwser

Top comments (0)

Become a Moderator Can you help us make DEV a better place?

Fill out this survey and help us by becoming a tag moderator here at DEV.