Skip to content

Use cases · NVDA screen reader and keyboard

Following a footnote and returning to the text, with NVDA

A blind person checks the source of a date in an article, then resumes reading. Four ways to code footnotes, including Wikipedia’s, and what each one changes for them.

Person
A blind person
Assistive technology
NVDA screen reader and keyboard
Goal
Read the source of a date, then resume reading

The Médiathèque des Tilleuls, a public library, publishes its history on its website, with its sources in footnotes. This use case follows a blind person who reads the article with NVDA, wants to check the source of a date, then resume reading where they left off. The same article is coded in four ways: version A without links, version B, which we use on this site, version C from Wikipedia, and version D, which fixes Wikipedia’s back links.

The examples for versions B, C and D work: you can activate their footnote references and back links with a mouse, a keyboard or a screen reader.

The journey, step by step

  1. Spot the reference

    While reading the sentence, the person must understand that a word points to a note. On screen, this is the superscript number; with a screen reader, it is the link text.

    RGAA criterion 6.1 (French original): Chaque lien est-il explicite (hors cas particuliers) ?

  2. Read the source

    They activate the reference. The browser scrolls the page to the note, and NVDA reads it. They must hear the source first, before any back link.

  3. Resume reading

    Most of the time, they stop there and go back with the browser’s Back command, Alt + Left Arrow on Windows: the reading cursor returns to the exact reference they came from. The note’s back link is a fallback, provided it says where it leads.

    RGAA criterion 6.1 (French original): Chaque lien est-il explicite (hors cas particuliers) ?

Version A: references as plain text

The number is a simple superscript, and the notes form a list at the end of the article. Nothing is clickable.

Example: references without links

The Médiathèque des Tilleuls opens its doors in 19871. Its collection of braille books arrives eight years later2, and the library turns thirty in 20171.

  1. Tilleuls municipal archives, council decision of 12 March 1987.
  2. Library annual report, 1995.

Code

<p>… opens its doors in 1987<sup>1</sup>. …</p>
<ol>
  <li>Tilleuls municipal archives, council decision of 12 March 1987.</li>
  <li>Library annual report, 1995.</li>
</ol>

No RGAA criterion is non-compliant: without a link, criterion 6.1 is not applicable. But the person can only reach the note by moving down to the end of the article, and must then go back up to find their sentence.

NVDA reads the sentence like this: “opens its doors in 1987 1”. It does not report the superscript: the person hears an extra number after the date, and may take it for a typo.

This is the version used on this site. The square brackets are hidden from assistive technologies, and text that is invisible on screen adds “Note” before the number. The text of the note comes first, then a single, named back link. A short script makes this link point to the reference actually activated, even when the note is cited several times.

Example: “Note 1” and “Back to the reference for note 1”

The Médiathèque des Tilleuls opens its doors in 1987Note 1. Its collection of braille books arrives eight years laterNote 2, and the library turns thirty in 2017Note 1.

  1. Tilleuls municipal archives, council decision of 12 March 1987. Back to the reference for note 1
  2. Library annual report, 1995. Back to the reference for note 2

Code

<p>… opens its doors in 1987<sup><a href="#note-1" id="appel-1a"><span class="masque">Note&nbsp;</span><span aria-hidden="true">[</span>1<span aria-hidden="true">]</span></a></sup>. …</p>
<ol>
  <li id="note-1">
    Tilleuls municipal archives, council decision of 12 March 1987.
    <a class="retour" href="#appel-1a"><span aria-hidden="true">↑</span><span class="masque">Back to the reference for note 1</span></a>
  </li>
</ol>

<style>
  /* Text read by screen readers, invisible on screen. */
  .masque {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* The note reached, then the reference on return, highlighted. */
  li:target, sup a:target {
    background: #c8ff00;
    color: #16181d;
  }
</style>

<script>
  // The activated reference becomes the target of its note's back link.
  document.addEventListener('click', function (e) {
    var appel = e.target.closest && e.target.closest('sup a[id]');
    if (!appel) return;
    var note = document.getElementById(appel.hash.slice(1));
    var retour = note && note.querySelector('.retour');
    if (retour) retour.setAttribute('href', '#' + appel.id);
  });
</script>

Compliant. Heard on its own, “Note 1” says where the link leads, and “Back to the reference for note 1” says what the back link does. Without the script, the back link leads to the first reference, but its name remains explicit.

What NVDA announces:

  • on the reference: “same page, link, Note 1”;
  • on arriving at the note: “list with 2 items, 1. Tilleuls municipal archives, council decision of 12 March 1987., same page, link, Back to the reference for note 1”. The source comes first;
  • in the links list: “Note 1”, “Note 2”, “Note 1”, “Back to the reference for note 1”, “Back to the reference for note 2”.

From the second reference to note 1, the one for 2017, we tested both ways of going back. Alt + Left Arrow brings the cursor back to this reference. So does the back link: Tab then Enter bring you back to the 2017 reference, not the first one.

An option: hearing the source without leaving the sentence

An aria-describedby attribute on the reference, pointing to the text of the note, lets the person hear the source without going there. We tested it: with Tab or the K key, NVDA announces “Note 1, same page, link, Tilleuls municipal archives, council decision of 12 March 1987.”. In continuous reading, it does not read the description, and the text stays just as light. A long note is read in one block, and any links it contains cannot be activated from the reference. This site does not use this option for now.

Version C: the Wikipedia presentation

Wikipedia places an arrow and the letters a, b before the text of the note: one back link per reference, identified by its letter. Our example reproduces this presentation with flawless code: the letters are written in the HTML, and each link has a full name. It keeps only the underlying question: on arriving at the note, does the person know which sentence each letter takes them back to?

Example: references “[1]” and back links “↑ a and b”

The Médiathèque des Tilleuls opens its doors in 1987[1]. Its collection of braille books arrives eight years later[2], and the library turns thirty in 2017[1].

  1. Jump up to: a and Jump up to: b Tilleuls municipal archives, council decision of 12 March 1987.
  2. Jump up Library annual report, 1995.

Code

<sup id="appel-1-0"><a href="#note-1">[1]</a></sup>
…
<li id="note-1">
  <span class="retours">
    <span aria-hidden="true">↑</span>
    <a href="#appel-1-0"><span class="masque">Jump up to:&nbsp;</span>a</a>
    and
    <a href="#appel-1-1"><span class="masque">Jump up to:&nbsp;</span>b</a>
  </span>
  Tilleuls municipal archives, council decision of 12 March 1987.
</li>

Compliant with criterion 6.1, as we read it: with its context, the note, each link says that it goes back up to a reference for this note. But neither the letter nor the name says which sentence: to choose between a and b, the person has to remember that they came from the second reference.

What NVDA announces:

  • on arriving at the note: “list with 2 items, 1., same page, link, Jump up to: a, and, same page, link, Jump up to: b”, then the source. Two links come before the text of the note;
  • with Tab on the back links: “Jump up to: a” then “Jump up to: b”. Nothing indicates that “b” is the 2017 reference.

On Wikipedia, the code is less complete: the letters a and b are added by the style sheet, and only the first link has hidden text. On the French Wikipedia article “Accessibilité du web” (in French), NVDA announces the first one as “aRevenir plus haut en : et” (“aJump up to: and”), and the second as “b”. The browser’s Back command spares the person from choosing a letter.

This version keeps Wikipedia’s letters a and b, but fixes their flaws. The source comes first. Each back link has a name written in the code, which repeats the end of the original sentence: “Back to reference b: ‘… turns thirty in 2017’”. People who can see the screen read the same extract in a tooltip, on hover and on focus. They can hide it with the Escape key, and move the mouse over it without making it disappear.

Example: back links “a” and “b” with a tooltip

The Médiathèque des Tilleuls opens its doors in 1987Note 1. Its collection of braille books arrives eight years laterNote 2, and the library turns thirty in 2017Note 1.

  1. Tilleuls municipal archives, council decision of 12 March 1987. Back to reference a: “… opens its doors in 1987”Back to reference b: “… turns thirty in 2017”
  2. Library annual report, 1995.Back to the reference for note 2: “… arrives eight years later”

Code

<p>… opens its doors in 1987<sup><a href="#note-1" id="appel-1a"><span class="masque">Note&nbsp;</span><span aria-hidden="true">[</span>1<span aria-hidden="true">]</span></a></sup>. …</p>
<ol>
  <li id="note-1">
    Tilleuls municipal archives, council decision of 12 March 1987.
    <span aria-hidden="true">↑</span>
    <span class="retour">
      <a href="#appel-1a"><span class="masque">Back to reference&nbsp;</span>a<span class="masque">: “… opens its doors in 1987”</span></a>
      <span class="bulle" aria-hidden="true">… opens its doors in 1987</span>
    </span>
    <span class="retour">
      <a href="#appel-1b"><span class="masque">Back to reference&nbsp;</span>b<span class="masque">: “… turns thirty in 2017”</span></a>
      <span class="bulle" aria-hidden="true">… turns thirty in 2017</span>
    </span>
  </li>
</ol>

<style>
  /* The tooltip appears on hover and on focus, and stays visible when the mouse moves over it. */
  .retour {
    position: relative;
    display: inline-block;
  }
  .bulle {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #16181d;
    color: #fff;
  }
  .retour:hover .bulle, .retour:focus-within .bulle {
    display: block;
  }
  .retour.ferme .bulle {
    display: none;
  }
</style>

<script>
  // Escape hides the tooltip without moving the focus.
  document.addEventListener('keydown', function (e) {
    if (e.key !== 'Escape') return;
    document.querySelectorAll('.retour').forEach(function (r) { r.classList.add('ferme'); });
  });
  document.addEventListener('focusin', function (e) {
    var r = e.target.closest && e.target.closest('.retour');
    if (r) r.classList.remove('ferme');
  });
</script>

Compliant. Each back link says, heard on its own, which sentence it takes you back to. The tooltip repeats text already present in the link’s name: it is hidden from screen readers so that it is not heard twice.

What NVDA announces:

  • on arriving at the note: “list with 2 items, 1. Tilleuls municipal archives, council decision of 12 March 1987., same page, link, Back to reference a: ‘… opens its doors in 1987’”. The source comes first;
  • with Tab on the second link: “Back to reference b: ‘… turns thirty in 2017’, same page, link”. Enter takes you back to the 2017 reference.

The hidden text “Back to reference” ends with a non-breaking space. With an ordinary space, NVDA announced “Back to referencea”: the browser removed the space at the end of the hidden text. Compared with version B, this version requires one extract per reference, written by hand or generated, and a script of a few lines for the Escape key.

The four versions, profile by profile

What each version changes, depending on how you browse
How you browseVersion A: textVersion B: this siteVersion C: WikipediaVersion D: back links with context
Screen readerHears a number stuck to the date, without knowing it is a reference. Has to look for the note manually.Hears “Note 1”, the source first, then a named back link that returns to the right reference.Hears “link [1]”, then two back links before the source, “a” and “b”, without knowing which one returns to their sentence.Hears “Note 1”, the source first, then one back link per reference, named with the end of its sentence.
Keyboard onlyNo way to reach the note without scrolling the page.Tab reaches each reference, and a single back link is enough.Tab reaches each reference. The letters a, b force you to remember which reference you followed.Tab reaches each reference. On focus, the tooltip shows the sentence for each back link.
Screen magnificationAt high zoom, the person loses sight of the sentence when they go looking for the note.The note reached, then the reference on return, are highlighted in neon, which helps to spot them on a magnified page.The note reached gets a very pale blue background, barely visible next to the white of the page.Neon highlighting as in version B. The tooltip stays visible when the mouse moves over it, and Escape hides it.
Mouse or touchNothing to click.Superscript reference, with a thicker underline. WCAG 2.2 does not set a minimum size for a link placed in a sentence.Superscript reference, small target.Reference as in version B. The letters a and b are targets at least 1.5 characters wide.
Publishing teamNothing to develop.A little extra markup and a few lines of script, to set up once in the template.Generated by the Wikipedia software.One sentence extract per reference, written by hand or generated, and a script for the Escape key.

What can get in the way

  • A silent reference. A superscript with no link and no hidden text is read like an ordinary number.
  • Back links made of symbols. “↑”, “^” or a single letter do not say where they lead when heard out of context.
  • A name added by the style sheet. Text generated in CSS is not in the page’s code, and not all tools render it.
  • Going back to the first reference. When a note is cited several times, a fixed back link takes the person to the wrong place in the text.
  • Links before the source. If the back links come before the text of the note, the person hears all of them before the information they were looking for.

What we checked with NVDA

We do not yet have a first-hand account from a person who reads footnotes with a screen reader. The announcements quoted were recorded on 4 November 2026 with NVDA 2026.3 and Chrome, with speech turned off, in the NVDA speech history: for the four versions, on a test page that reproduces the library example, and for Wikipedia’s original code, on the article cited. The announcements on this page are those of NVDA in French, translated. In French, they were reproduced word for word; only the commas between their parts were added for readability. Depending on the punctuation level set in NVDA, the person may or may not hear the square brackets and the arrow. We did not test any other screen reader, or any screen magnification software.

Further reading