Languages and screen readers


This page is is written in English. For people who can read in English, this is obvious. But how does a screen reader know that this page's content is in English and not another language?

This is where the HTML "lang" attribute comes in handy.

The lang attribute can be specified:

In practical terms, how does this help people?

All modern screen readers have support for numerous languages. In some screen reader the user must manually install or configure language voices or "language packs".

Screen reader test #

To show you how screen readers adapt their pronunciation, I will run the MacOS VoiceOver screen reader on this page.

A paragraph in Romanian with the ro language specified on the p element:

Bate fierul cât e cald.

A paragraph in Romanian without the language specified:

Bate fierul cât e cald.

The result is that:

Play back the recording of VoiceOver reading Romanian on Youtube.