Access 4.1.1.1

From Htmlpedia
Jump to: navigation, search

Access: [4.1.1.1]: indicate changes in language (Priority 1)

Cause:

Indicate changes in the primary language of a document through HTML markup. If changes in language are not marked, a speech synthesizer will attempt to pronounce a foreign word or phrase in the document's original primary language. Encapsulate short words or phrases with 'span lang="(indicate language here)" ' and use 'Q lang="(indicate language here)"' for quotes.

Example:

Bad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>aert1.0/4.1.1</title>
</head>
<body>

<p>In Luis Bunuel's 1967 film, "Belle de Jour", the stunning Catherine Deneuve 
portrays a woman leading a double life.</p>

</body>
</html>

Solution:

References: