When a page opens, a screen reader first announces its title, then reads the content with the voice of the language the page declares. Both come from the code: the title element, in the head part you do not see on screen, and the lang attribute of the html element.
Question 1 of 4
Explanation: The page title is the text of the title element placed in head. It is what the browser tab shows and what the screen reader announces first. A title element written inside an SVG names the drawing. The h1, the large visible heading, titles the page content; for the tab and the announcement on opening, the browser uses the title element. Reference: WCAG 2.2 success criterion 2.4.2 Page Titled (Level A); RGAA criterion 8.5.
Question 2 of 4
Explanation: Here the RGAA checks one thing only: does the page have a title element? A script is allowed to change it. Here, the number of results even helps people find their way: someone switching tabs hears straight away how many results their search returned. Reference: WCAG 2.2 success criterion 2.4.2 Page Titled (Level A); RGAA criterion 8.5.
Question 3 of 4
Explanation: Without a title element, the browser has nothing else to put in the tab but the page address. A screen reader user arrives on the page without hearing a title: they have to read the content to know where they are. Everyone also uses the title to find the page again in their history or bookmarks. Reference: WCAG 2.2 success criterion 2.4.2 Page Titled (Level A); RGAA criterion 8.5.
Question 4 of 4
Explanation: The lang attribute of the html element says which language the page is written in. The screen reader’s speech synthesiser uses it to choose its pronunciation: lang="en" announces English. lang="" is empty and gives no language; without the attribute, there is none either. In both cases, the synthesiser reads the text with the language set on the person’s device, which may not be English. An English text pronounced as French quickly becomes hard to follow. Reference: WCAG 2.2 success criterion 3.1.1 Language of Page (Level A); RGAA criterion 8.3.
Select an answer before submitting.