liveBook · Manning

Dfn element

As explained in Architecting Accessibility

The dfn tag is an HTML element that marks the term being defined within a definition.

When readers encounter a specialized term, mark the term being defined with the HTML <dfn> element. For example, define “latency” when describing an API, then link later mentions to that definition. section 4.1 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 an API example that defines “latency” with <dfn id="dfn-latency"> and links a later mention to that definition. section 4.1

How Architecting Accessibility covers it

How deep it goes
Demonstrates marking a term and linking later mentions to its definition.
Examples
Defines API latency with <dfn> and links a later mention to its ID.
What you can do after
Build semantic definitions by marking a term with <dfn> and linking later mentions to its ID.
How it connects
Connects semantic HTML with definitions, hyperlinks, and readable web content.

Also explained in

Compare how 2 books explain dfn 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.