[wp-trac] [WordPress Trac] #44955: Add lang attribute to readme.html
WordPress Trac
noreply at wordpress.org
Sun Sep 16 19:36:52 UTC 2018
#44955: Add lang attribute to readme.html
---------------------------+-----------------------------
Reporter: audrasjb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Help/About | Version: trunk
Severity: normal | Keywords:
Focuses: accessibility |
---------------------------+-----------------------------
Consider to add `lang` attribute to the `<html>` tag in `readme.html`.
Indeed, this is useful for assistive technologies users. It helps to
indicate the primary language of the document.
"Language of HTML documents is indicated using a lang attribute (on the
HTML element itself), to indicate the primary language of the document,
and on individual elements, to indicate a change in language. It provides
an explicit indication to user agents about the language of content, so an
appropriate language dictionary can be used and, in the case of screen
readers and similar assistive technologies with voice output, the content
is pronounced using the correct voice / language library."
Source: https://www.w3.org/TR/2017/REC-html51-20171003/dom.html#the-lang-
and-xmllang-attributes
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44955>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list