Skip to content

Commit aa622c3

Browse files
kengdojJym77
andauthored
Update element-lang-valid-de46e4.md (#2100)
Co-authored-by: Jean-Yves Moyen <[email protected]>
1 parent b31b873 commit aa622c3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

_rules/element-lang-valid-de46e4.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ There are differences in how assistive technologies handle unknown and invalid l
7171
This `article` element has a `lang` [attribute value][] which has a [known primary language tag][].
7272

7373
```html
74-
<html>
74+
<html lang="es">
7575
<body>
7676
<article lang="en">
7777
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -85,7 +85,7 @@ This `article` element has a `lang` [attribute value][] which has a [known prima
8585
This `blockquote` element has a `lang` [attribute value][] which has a [known primary language tag][]. The region section ("CH") in the value is ignored by the rule (and the definition of [known primary language tag][]).
8686

8787
```html
88-
<html>
88+
<html lang="en">
8989
<body>
9090
<blockquote lang="fr-CH">
9191
Ils ont trouvé un étrange bar Tiki aux abords de la petite ville balnéaire.
@@ -99,7 +99,7 @@ This `blockquote` element has a `lang` [attribute value][] which has a [known pr
9999
This `p` element has a `lang` [attribute value][] which has a [known primary language tag][], but a syntactically invalid region subtag which is ignored by the rule.
100100

101101
```html
102-
<html>
102+
<html lang="fr">
103103
<body>
104104
<p lang="en-US-GB">
105105
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -113,7 +113,7 @@ This `p` element has a `lang` [attribute value][] which has a [known primary lan
113113
This `div` element has a valid `lang` [attribute value][]. There is no [text inheriting its programmatic language][] from the `article` element, therefore its `lang` attribute is not considered by the rule.
114114

115115
```html
116-
<html>
116+
<html lang="fr">
117117
<body>
118118
<article lang="invalid">
119119
<div lang="en">
@@ -129,7 +129,7 @@ This `div` element has a valid `lang` [attribute value][]. There is no [text inh
129129
This `div` element has a valid `lang` [attribute value][]. The [accessible name][] of the image is [text inheriting its programmatic language][] from the `div` element.
130130

131131
```html
132-
<html>
132+
<html lang="es">
133133
<body>
134134
<div lang="EN">
135135
<img src="/test-assets/shared/fireworks.jpg" alt="Fireworks over Paris" />
@@ -145,7 +145,7 @@ This `div` element has a valid `lang` [attribute value][]. The [accessible name]
145145
This `article` element has a `lang` [attribute value][] which does not have a [known primary language tag][] because its primary language subtag does not exist in the [language subtag registry][].
146146

147147
```html
148-
<html>
148+
<html lang="es">
149149
<body>
150150
<article lang="dutch">
151151
Zij liepen een vreemde Tiki bar binnen, aan de rand van een dorpje aan het strand.
@@ -159,7 +159,7 @@ This `article` element has a `lang` [attribute value][] which does not have a [k
159159
This `article` element has a `lang` [attribute value][] which has no [known primary language tag][].
160160

161161
```html
162-
<html>
162+
<html lang="en">
163163
<body>
164164
<article lang="#!">
165165
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -173,7 +173,7 @@ This `article` element has a `lang` [attribute value][] which has no [known prim
173173
This `article` element has a `lang` [attribute value][] which consists of only [whitespace][] and thus has no [known primary language tag][].
174174

175175
```html
176-
<html>
176+
<html lang="fr">
177177
<body>
178178
<article lang=" ">
179179
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -187,7 +187,7 @@ This `article` element has a `lang` [attribute value][] which consists of only [
187187
The `lang` [attribute value][] does not have a valid language tag. The `lang` attribute must be valid because the content is [visible][].
188188

189189
```html
190-
<html>
190+
<html lang="es">
191191
<body>
192192
<article lang="english">
193193
<p aria-hidden="true">
@@ -203,7 +203,7 @@ The `lang` [attribute value][] does not have a valid language tag. The `lang` at
203203
The `lang` [attribute value][] does not have a valid language tag, and its [descendant][] is not [visible][] though it is still [included in the accessibility tree][].
204204

205205
```html
206-
<html>
206+
<html lang="fr">
207207
<body>
208208
<article lang="English">
209209
<p style="position: absolute; top: -9999px">
@@ -219,7 +219,7 @@ The `lang` [attribute value][] does not have a valid language tag, and its [desc
219219
This `div` element has an invalid `lang` [attribute value][]. There is no [text inheriting its programmatic language][] from the `article` element, therefore its `lang` attribute is not considered by the rule.
220220

221221
```html
222-
<html>
222+
<html lang="es">
223223
<body>
224224
<article lang="en">
225225
<div lang="invalid">
@@ -235,7 +235,7 @@ This `div` element has an invalid `lang` [attribute value][]. There is no [text
235235
This `div` element has an invalid `lang` [attribute value][]. The [accessible name][] of the image is [text inheriting its programmatic language][] from the `div` element.
236236

237237
```html
238-
<html>
238+
<html lang="en">
239239
<body>
240240
<div lang="invalid">
241241
<img src="/test-assets/shared/fireworks.jpg" alt="Fireworks over Paris" />

0 commit comments

Comments
 (0)