Element

body

Error Type

Potential

Guidelines

  • BITV 1.0 (Level 2)
    Guideline GroupLevel 1
    Guideline Subgroup4.1 Clearly identify changes in the natural language of a document's text and any text equivalents (e.g., captions).
  • WCAG 1.0 (Level A)
    Guideline GroupPriority 1
    Guideline Subgroup4.1 Clearly identify changes in the natural language of a document's text and any text equivalents (e.g., captions).
  • WCAG 1.0 (Level AA)
    Guideline GroupPriority 1
    Guideline Subgroup4.1 Clearly identify changes in the natural language of a document's text and any text equivalents (e.g., captions).
  • WCAG 1.0 (Level AAA)
    Guideline GroupPriority 1
    Guideline Subgroup4.1 Clearly identify changes in the natural language of a document's text and any text equivalents (e.g., captions).
  • WCAG 2.0 (Level A)
    Guideline Group3.1 Readable: Make text content readable and understandable.
    Guideline SubgroupSuccess Criteria 3.1.2 Language of Parts (A)
  • WCAG 2.0 (Level AA)
    Guideline Group3.1 Readable: Make text content readable and understandable.
    Guideline SubgroupSuccess Criteria 3.1.2 Language Parts (AA)
  • WCAG 2.0 (Level AAA)
    Guideline Group3.1 Readable: Make text content readable and understandable
    Guideline SubgroupSuccess Criteria 3.1.2 Language of Parts (AA)

Requirement

Words and phrases not in the document's primary language are marked.

Error

Words or phrases that are not in the document's primary language may not be identified.

Short Description

If the body element contains more than 10 characters (English) then this error will be generated.

Rationale

If you use a number of different languages on a page, make sure that any changes in language are clearly identified by use of the lang attribute.

How To Determine

Question Are there any words or phrases that are not in the document's primary language?
PASS All words outside the primary language are identified.
FAIL Words outside the primary language are not identified.

Steps To Check

Procedure

1. Check the document for any words or phrases that are not in the document's primary language.
2. Check if these words are marked using the lang attribute.

Expected Result

1. Words and phrases not in the document's primary language are marked

Failed Result

1. Add markup using the lang attribute to identify any words that are not in the primary language.

Examples

Pass Examples

Document contains words outside the primary language but they are marked as such.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>OAC Testfile - Check #110 - Positive</title>
</head>
<body>
<P>And with a certain <SPAN lang="fr">je ne sais quoi</SPAN>, she entered both the room, and his life, forever. </p>
</body>
</html>

Fail Examples

Document contains words outside the primary language.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>OAC Testfile - Check #110 - Positive</title>
</head>
<body>
<P>And with a certain je ne sais quoi, she entered both the room, and his life, forever. </p>
</body>
</html>
Web site engine's code is copyright © 2023
Inclusive Design Institute