Technique H54:Using the dfn element to identify the defining instance of a word or phrase
About this Technique
This technique relates to 3.1.3 Unusual Words (Sufficient when used with G112: Using inline definitions).
This technique applies to HTML.
Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are not required to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See About WCAG Techniques.
Description
The objective of this technique is to use the dfn to mark the use of a
word or phrase where it is defined. The dfn element is used to indicate the
defining instance of the enclosed term. In other words, it marks the occurrence of the
term where the term is defined. Note that it encloses the term, not the definition. This
technique would be used in combination with Using
inline definitions to provide the definition.
Examples
Example 1
<p>The Web Content Accessibility Guidelines require that non-text content
has a text alternative. <dfn>Non-text content</dfn> is content that is not a sequence
of characters that can be programmatically determined or where the sequence is
not expressing something in human language; this includes ASCII Art (which is a
pattern of characters), emoticons, leetspeak (which is character substitution), and
images representing text.</p>
Related Resources
No endorsement implied.
Tests
Procedure
- Identify all words that are defined inline in the text, that is, where the definition occurs in a sentence near an occurrence of the word.
- Check that each word that is defined inline is contained in a
dfnelement.
Expected Results
- Check #2 is true.