Skip to content

Quiz · beginner level · 4 questions

Links and form fields

“Click here”, placeholders, a forgotten label: four common situations, and what the screen reader actually announces.

Links and form fields have an accessible name too: it is what the screen reader announces when the person reaches them.

For a link, the browser takes the text referenced by aria-labelledby, otherwise aria-label, otherwise the link text, otherwise its title. For a field, it takes aria-labelledby, otherwise aria-label, otherwise the text of the label tied to the field, otherwise its title. When a field has none of these, the browser falls back on other texts, such as the placeholder: the screen reader then announces a name, even though the field has no label in the RGAA sense.

To review before or after the quiz: Links and Form fields.

Question 1 of 4

Under the heading “Practical information”, a paragraph contains only this link: <a href="#programme">Click here</a>. What is the RGAA verdict?

Explanation: The accessible name of this link is its text: “Click here”. The RGAA accepts a link completed by its context: the sentence, the paragraph, the list item, the preceding heading or the associated table cells. Here, neither the paragraph nor the heading “Practical information” says where it goes. Screen readers can also display the list of all links on a page: the person only hears “Click here” there. This is not a “not applicable” case: the RGAA keeps that for links that are ambiguous for everyone and cannot be made explicit, whereas here the link only needs rewriting. Reference: WCAG 2.2 success criterion 2.4.4 Link Purpose (In Context) (Level A); RGAA criterion 6.1.

Question 2 of 4

In the sentence “The November events programme is out: read more”, only “read more” is a link. What is the RGAA verdict?

Explanation: The RGAA accepts a link text completed by its context, here the sentence containing it: by reading the sentence, the person knows the link leads to the events programme, and the link is compliant. In the list of links, though, they will hear “read more” alone. A link that stands on its own, such as “November events programme”, saves them going back to the sentence. Reference: WCAG 2.2 success criterion 2.4.4 Link Purpose (In Context) (Level A); RGAA criterion 6.1.

Question 3 of 4

<input type="email" placeholder="Your email address">, with no other label. NVDA announces the placeholder as the field’s name. What is the RGAA verdict?

Explanation: The placeholder is the sample text shown in an empty field. The field has no label, aria-label, aria-labelledby or title: Chrome then uses the placeholder as a fallback name, which is why NVDA announces it. But the placeholder is not one of the labels the RGAA recognises: aria-labelledby, aria-label, a label tied with for, title, or an adjacent button acting as the visible label. The field is therefore non-compliant. In practice too, the placeholder disappears as soon as the person starts typing: they can no longer check what was asked. Reference: WCAG 2.2 success criteria 1.3.1 Info and Relationships and 3.3.2 Labels or Instructions (Level A); RGAA criterion 11.1.

Question 4 of 4

Which of these fields has a label recognised by the RGAA?

Explanation: A label element only works as a label if it is tied to the field. With for="name" on the label and id="name" on the field, the browser makes the link, and the screen reader announces “Last name” when the person reaches the field. The “Phone” label, placed next to the field without being tied to it, gives it no name: NVDA only announces the field type, and the person does not know what to type. Reference: WCAG 2.2 success criteria 1.3.1 Info and Relationships, 3.3.2 Labels or Instructions and 4.1.2 Name, Role, Value (Level A); RGAA criterion 11.1.

Other quizzes