Skip to content

Commit b73f4f7

Browse files
Update language-of-parts.html
1 parent 299d9a6 commit b73f4f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

understanding/20/language-of-parts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ <h3>Alternative language links</h3>
145145
<h3>Element's content used as accessible name</h3>
146146
<p>When content is used as the accessible name of an element, the correct language should be specified on that element. This helps assistive technologies pronounce it accurately.</p>
147147
<p>This link may be announced with an English accent, mispronouncing "Español".</p>
148-
<p><code class="language-html"><code class="language-html">&lt;a href="/es/"&gt;&lt;span lang="es"&gt;Español&lt;/span&gt;&lt;/a&gt;</code></p>
148+
<p><code class="language-html">&lt;a href="/es/"&gt;&lt;span lang="es"&gt;Español&lt;/span&gt;&lt;/a&gt;</code></p>
149149
<p>This version correctly applies the Spanish language to the element, ensuring "Español" is pronounced with a Spanish accent.</p>
150-
<p><code class="language-html"><code class="language-html">&lt;a href="/es/" lang="es"&gt;&lt;span&gt;Español&lt;/span&gt;&lt;/a&gt;</code></p>
150+
<p><code class="language-html">&lt;a href="/es/" lang="es"&gt;&lt;span&gt;Español&lt;/span&gt;&lt;/a&gt;</code></p>
151151

152152
<h3>Element's content in multiple languages used as accessible name</h3>
153153
<p>When content includes multiple languages, it's acceptable to set the parent element to the primary language, as long as any child elements in a different language have the appropriate language set.</p>

0 commit comments

Comments
 (0)