Success Criterion 1.3.2 Meaningful Sequence: [Level A]
It is important that it is possible to programmatically determine at least one sequence of the content that makes sense. If not assitive technology may produce confusing results, reading content in the wrong order. In some cases, the sequence may not be important, for instance it wouldn't really matter about the order of the main content block and sidebars containing advertisements.
Techniques
Ordering content
The order of the content as interpreted by assistive technologies must make sense to the user. It is possible for the content to be ordered visually different but the underlying code is still in a meaningful order.
In this example the visual sequence is the same as the coded sequence but it is important to note that the h6 'Match statistic' sections follow the h5 'Match Heading' block. The sequence is important so it is obvious for a screen reader that the 'Match Statistic' blocks relate to the previous title and description.
<h5>England v Australia 4th Test</h5> <p>Yet again Australia suffered a completely humiliating defeat losing their 27th test match in a row to England. Of these, 19 have been an innings defeat.</p> <h6>Match Stats</h6> <ul> <li>England: 1st Innings - 636/2d</li> <li>Australia: 1st Innings - 127/10</li> <li>Australia: 2nd Inings - 237/10></li> <li>England win by an innings and 272 runs</li> </ul> <h5>England v Australia 5th Test</h5> <p>Totally boring, another resounding loss for Australia. ICC have announced that Australia are to lose their full ICC membership.</p> <h6>Match Stats</h6> <ul> <li>Australia: 1st Innings - 97/10</li> <li>England: 1st Innings - 203/0d</li> <li>Australia: 2nd Inings - 105/10></li> <li>England win by an innings and 1 runs</li> </ul>
Positioning content based on structural markup
Content may be visually positioned using CSS. However it is important that if this is done, then the markup must be correct semantically so that a screen reader can still read the content in a meaningful and sequential way regardless of how the content is positioned visually by CSS.
In this example, the content is a list of items marked up as definition list. Visually though, CSS has been used to produce a column effect as seen below. However the important thing is that although visually it appears to have changed, the underlying markup is sematically and structurally correct and so a screen reader will have no problem in interpreting this content.
.item1 {
left: 0;
position: absolute;
top: 2.5em;
}
.item2 {
left: 0;
position: absolute;
top: 3.5em;
}
.item3 {
left: 0;
position: absolute;
top: 4.5em;
}
.item4 {
left: 14em;
position: absolute;
top: 2.5em;
}
.item5 {
left: 14em;
position: absolute;
top: 3.5em;
}
.item6 {
left: 14em;
position: absolute;
top: 4.5em;
}
.menu1 {
left: 0;
position: absolute;
top: 0.5em;
}
.menu2 {
left: 10em;
position: absolute;
top: 0.5em;
}
#box {
left: 5em;
position: absolute;
top: 0em;
}
/* Only minimum CSS shown specifying positioning style rules */
. . .
<div class="box">
<dl>
<dt class="menu1">States</dt>
<dd class="item1">New Mexico</dd>
<dd class="item2">Nevada</dd>
<dd class="item3">Louisiana</dd>
<dt class="menu2">State Capitals</dt>
<dd class="item4">Albuquerque</dd>
<dd class="item5">Carson City</dd>
<dd class="item6">Baton Rouge</dd>
</dl>
</div>
- New Mexico
- Nevada
- Louisiana
- Albuquerque
- Carson City
- Baton Rouge
Failures
Content not ordered sequentually
In this variation of the cricket example above, the match stats are floated right. However to achieve this, they are coded before the match title and description and CSS is used to visually position them. This is potentially confusing for someone using a screen reader in that the match stats relate to a particular match but being coded like this there is no immediate relationship between the stats and the match it applies to.
<div style="float:right;width:30%"> <h6>Match Stats</h6> <ul style="margin-top:0;"> <li>England: 1st Innings - 636/2d</li> <li>Australia: 1st Innings - 127/10</li> <li>Australia: 2nd Inings - 237/10</li> <li>England win by an innings and 272 runs</li> </ul> </div> <div style="float:left;width:70%"> <h5>England v Australia 4th Test</h5> <p>Yet again Australia suffered a completely humiliating defeat losing their 27th test match in a row to England. Of these, 19 have been by an innings defeat.</p> </div> <div style="clear:both;float:right;width:30%"> <h6>Match Stats</h6> <ul style="margin-top:0;"> <li>Australia: 1st Innings - 97/10</li> <li>England: 1st Innings - 203/0d</li> <li>Australia: 2nd Inings - 105/10</li> <li>England win by an innings and 1 run</li> </ul> </div> <div style="float:left;width:70%"> <h5>England v Australia 5th Test</h5> <p>Totally boring, another resounding loss for Australia. ICC have announced that Australia are to lose their ICC full membership.</p> </div>
Match Stats
- England: 1st Innings - 636/2d
- Australia: 1st Innings - 127/10
- Australia: 2nd Inings - 237/10
- England win by an innings and 272 runs
England v Australia 4th Test
Yet again Australia suffered a completely humiliating defeat losing their 27th test match in a row to England. Of these, 19 have been by an innings defeat.
Match Stats
- Australia: 1st Innings - 97/10
- England: 1st Innings - 203/0d
- Australia: 2nd Inings - 105/10
- England win by an innings and 1 run
England v Australia 5th Test
Totally boring, another resounding loss for Australia. ICC have announced that Australia are to lose their full ICC membership.
Using CSS to visually position incorrect markup
This is similar to the example above where CSS was used to visually position content but was applied to the correct markup. In this example the same visual effect has been made but has not been applied to structural markup.
/* CSS is same as technique example above */ <div class="box"> <span class="menu1">States</span> <span class="item1">New Mexico</span> <span class="item2">Nevada</span> <span class="item3">Louisiana</span> <span class="menu2">State Capitals</span> <span class="item4">Albuquerque</span> <span class="item5">Carson City</span> <span class="item6">Baton Rouge</span> </div>
Because of the non-structural markup, a screen reader would read this as "Products Telephones Computers Portable MPthree Players Locations Idaho Wisconsin" which is not particularly meaningful particularly if it is not announced as a list of items.
Using white space to style a word
If spaces are used to style a word then a screen reader would interpret this as a series of letters. CSS should be used to produce the spacing effect.
H E A D I N G
HEADING
Using HTML tables for layout
Although the use of tables for layout is not prohibited it is not a recommended method. A screen reader reads a table's content cell by cell left to right row by row. If the cell layout is used to form some sort of visual presentation, any interpretation by the screen reader may well be incorrect as seen in the following example.
<table> <tr> <td ><img src="logo.gif" alt="XYZ mountaineering" /></td> <td rowspan="2" valign="bottom">top!</td> </tr> <tr> <td>XYZ gets you to the</td> </tr> </table>
![]() |
top! |
| XYZ gets you to the |
