| Monash home | About Monash | Faculties | Campuses | Courses | Contact Monash |
| Staff directory | A-Z index | Site map |
Designing tablesTables are designed to be used only for showing data. However, they are widely used on websites to control layout. Using tables for layout is now being phased out because of improvements to browsers and the layout techniques that can be achieved using style sheets. Layout tables are still used at Monash because many of our users still use older browsers that don't work well with style sheets. In the coming year or two we will be monitoring the use of Netscape 4 and looking to phase out table-based layouts. Guidelines for creating data tablesAvoid designing complex data tables. They can cause usability problems for all users and are particularly difficult to markup for screen reader accessibility. Sometimes complex data is best communicated with a diagram or visual representation of some kind. The most important thing for accessibility of data tables is to make sure that the content is read or presented in the correct order. In browsers that do not support tables the information is treated as a series of paragraphs. The paragraphs are read in a particular order, starting with the top left cell. You can check the reading order with a tool like The Wave. Structural markup should be used to distinguish table header cells from data cells. Header cells should be marked up with
<th id="monday">Monday</th>
Tables should also include an appropriate summary attribute that describes the content contained in the table. For example,
<table width="100%" summary="Aerobics classes and session times, Monday to Friday.">
Another way of providing summary information for a table is to give the table a title using the
<table width="100%" summary="Aerobics classes and session times, Monday to Friday.">
Markup for entire table
<table width="100%" border="1" cellspacing="0" cellpadding="5" summary="Aerobics classes and session times, Monday to Friday." >
This is what the table looks like on a graphical browser.
Resources |