-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Expand file tree
/
Copy pathindex.md
More file actions
31 lines (22 loc) · 2 KB
/
index.md
File metadata and controls
31 lines (22 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
title: Reading order
slug: Glossary/Reading_order
page-type: glossary-definition
sidebar: glossarysidebar
---
**Reading order** refers to the order in which content is accessed, for example when read out by a {{glossary("screen reader")}}, or navigated to using sequential navigation methods such as tabbing through links or buttons. By default, the reading order of a webpage is defined by the document source order.
Generally, the source order should express a sensible reading order for the content, and this should also be reflected by the visual order of the content layout. However, sometimes the visual order goes out of sync with the source order. For example, you might apply different layouts to a document based on [media queries](/en-US/docs/Web/CSS/Guides/Media_queries/Using) to suit various device or user requirements, or adjust tabbing order via [`tabindex`](/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex).
These updates can cause accessibility issues. For example, when a sighted screen reader user tabs through content, and the screen reader order differs from the visual order, this is bad user experience and can be inaccessible. The reading order should make sense to all users no matter how they access the content.
## Modifying reading order in CSS
An element's reading order can be modified via the {{cssxref("reading-flow")}} property, and tweaked further by setting {{cssxref("reading-order")}} values on child items of the element.
The following definitions are significant in understanding modified reading order:
- Reading flow container
- : An element with a modified reading order resulting from the values set for its {{cssxref("reading-flow")}} and {{cssxref("reading-order")}} properties.
- Reading flow
- : The modified reading order of a reading flow container's child elements.
## See also
- {{cssxref("reading-flow")}}
- {{cssxref("reading-order")}}
- {{cssxref("flex-direction")}}
- {{cssxref("order")}}
- [`tabindex`](/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex)