WebAIM - Web Accessibility In Mind

E-mail List Archives

Best practice for language markup

for

From: Murray Inman
Date: Jul 25, 2022 7:11PM


Friendly greetings!
In an introductory Japanese course, there are several places where Japanese
words are written out using "rōmaji" which basically is the
pronunciation of the word written out using Roman characters. For example,
The Japanese word *ローマ字* would be written as *rōmaji*.

Would the best practice, both semantically and accessibility -wise, be to
add the lang="ja" attribute to a wrapper <span> element? HTML code example:
<span lang="ja">rōmaji</span>

My thinking is that yes, it should have the lang attribute because it is a
Japanese word. Anyone have any experience with the accessibility aspects of
this?

Thank you for your help!
Murray


Murray Inman

Manager, Instructional Media and Accessibility

VP, Ability Maricopa Employees with Disability Advocacy Group

480-517-8561 | <EMAIL REMOVED>

RIO SALADO COLLEGE | https://riosalado.edu

2323 West 14th Street, Tempe, AZ 85281

Definition of "Accessible" <http://learnatrio.com/accessibilityDefined>; by
the Office for Civil Rights