A blind person does not see images. Their screen reader, the software that renders the page as speech or braille, gives them the accessible name of each image instead: the text the browser passes to it in place of the image.
The browser calculates this name in a precise order and takes the first source it finds: first the text referenced by aria-labelledby, otherwise aria-label, otherwise the alt attribute, otherwise the title attribute. The RGAA calls the result the “text alternative”. You will need this order to answer.
Question 1 of 4
Explanation: The alternative must say what the image conveys. For a logo, that is the organisation’s name: with alt="Linden Library", the person hears that name and knows which site they are on. With the file name, they hear a text that teaches them nothing. Last trap: aria-label comes before alt in the accessible name calculation. With aria-label="Logo", the screen reader announces “Logo” and never reads the library’s name, even though it is written in the alt. Reference: WCAG 2.2 success criteria 1.1.1 Non-text Content and 4.1.2 Name, Role, Value (Level A); RGAA criterion 1.3.
Question 2 of 4
Explanation: A decorative image, such as a rule or a background pattern, carries no information. For the screen reader to skip it, you give it an empty text alternative: alt="", two quotation marks with nothing between them. With no alt attribute at all, nothing tells the browser the image is decorative, and the code meets none of the conditions set by the RGAA. With a filled-in alt, the person hears “Dotted decorative rule” every time they pass it, and learns nothing. Reference: WCAG 2.2 success criteria 1.1.1 Non-text Content and 4.1.2 Name, Role, Value (Level A); RGAA criterion 1.2.
Question 3 of 4
Explanation: Go back to the calculation order: after alt comes title. Here, the alt is empty, but the title contains “Section divider”: it provides an alternative, and the screen reader may read it. People often add it to show a tooltip on mouse hover, without thinking of the screen reader. For a decorative image, keep alt="" and remove the title. Reference: WCAG 2.2 success criteria 1.1.1 Non-text Content and 4.1.2 Name, Role, Value (Level A); RGAA criterion 1.2.
Question 4 of 4
Explanation: The RGAA covers images someone can see or hear. display: none hides the image from everyone: the browser neither displays it nor passes it to the screen reader. An image only pushed off screen escapes the eye, but the screen reader still reads it: it needs a text alternative. Finally, with role="img", the screen reader treats a plain div as an image. A div has no alt: its name must come from an aria-label or an aria-labelledby. Reference: WCAG 2.2 success criterion 1.1.1 Non-text Content (Level A); RGAA criterion 1.1.
Select an answer before submitting.