Start a new topic

Accessibility: Set the language of posts

This is related to another topic of mine, in the bug section. ("Accessibility: No lang attribute on html element")


I've noticed that on Mastodon, you can pick the language that you're posting in, and it will put the entire post in a div with the correct lang attribute. This is important - just as a page's language must be defined for assistive tech like screen readers, any text that is in a different language than the page must have its own lang attribute.


https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang


10 people like this idea
Login or Signup to post a comment