Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

<html dir="ltr"> and screen readers

Featured Replies

Hello

Some time ago for some reason I got the impression that expressing the direction of your text on a page using a code like

<html dir="ltr">

is helpful for screen readers. So I made this the beginning code on all my pages.

 

Now, I check my site for accessibility at Deque Worldspace Free Analysis (not allowed to provide link) only to receive an error regarding the line where that code of mine is- the error says:

On change in text direction, content should still be in meaningful sequence (Success Criterion 1.3.2 - Level A)

Which of course is the opposite of what I was trying to do.

 

Can someone explain whether I need the <html dir="ltr"> tag or not?

And its effect on screen readers?

 

Thanks

 

EDIT:

Which of course is the opposite of what I was trying to do.

No, actually I don't know what that error message means.

Edited by timmo76

I don't think you do need the <html dir="ltr"> tag. I don't use it and I've never seen it for a site with normal left to right script. I think it would be a good idea if you have a page with some text left to right and then use the tag only for the right to left text.

 

I think the error is because the validator thinks that you are changing the direction when in fact you aren't.

 

However, I've never really considered this before so I may be corrected.

 

Edit: I found this:-

http://www.w3.org/TR/html401/struct/dirlang.html

Edited by Wickham

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.