liveBook · Manning

Abbr element

As explained in Architecting Accessibility

The abbr tag is an HTML element that marks an abbreviation or acronym and can associate it with an expanded form.

Abbreviations can make web content harder to understand. The HTML abbr element can associate an abbreviation with its expanded form. section 4.1

<section aria-labelledby="messaging-service"> #A
  <h2 id="messaging-service">Messaging service</h2> #B
  <p> #C
    We provide an Application Programming Interface #D
    (<abbr title="Application Programming Interface">API</abbr>) #D
    that enables applications to send and receive messages.
  </p>
  <p>
    The API's <dfn id="dfn-latency">latency</dfn> - the time between a #E
    request and message processing - is typically under 200 milliseconds.
  </p>
  <p>
    This <a href="#dfn-latency">latency</a> is not guaranteed, #E
    especially during periods of high traffic.
  </p>
</section>

See API expanded as “Application Programming Interface” using the abbr element’s title attribute. section 4.1

How Architecting Accessibility covers it

How deep it goes
Shows one HTML example associating API with its expansion through the title attribute.
Examples
Uses API expanded as “Application Programming Interface” in a sentence about a messaging service.
What you can do after
Apply the HTML abbr element to associate an abbreviation with its expanded form.
How it connects
Connects semantic HTML with plain-language content and screen-reader accessibility.

Also explained in

Compare how 2 books explain abbr element →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecting Accessibility. The section links point to the parts of the book it draws on.