--- url: "https://webaim.org/techniques/tables" titulek: "WebAIM: Creating Accessible Tables - Layout Tables" h1: "Creating Accessible TablesLayout Tables" popis: "" jazyk: "en" kanonicka: "" drobecky: ["You are here:", "Home", "Articles"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:53:55" znaku: 6858 slov: 1164 kodovani: "utf-8" sha256: "ae5bb5dd7298bcb5e483b48eea45512f082a3b0d0c208cb40ac00c08f1049e0e" --- # Creating Accessible Tables Layout Tables You are here: [Home](/) > [Articles](/articles/) > Tables ## Introduction If you're not a screen reader user, let's pretend that you are for just a moment. You're going to a web site to find out where the biology 205 class is going to be held. You go to a web page that has this information, and this is what you hear: > Table with 10 columns and 7 rows. Department Code, Class Number, Section, Max Enrollment, Current Enrollment, Room Number, Days, Start Time, End Time, Instructor, BIO, 100, 1, 15, 13, 5, Mon,Wed,Fri, 10:00, 11:00, Magde, 100, 2, 15, 7, 5, Tue,Thu, 11:00, 12:30, Indge, 205, 1, 15, 9, 6, Tue,Thu, 09:00, 10:30, Magde, 315, 1, 12, 3, 6, Mon,Wed,Fri, 13:00, 14:00, Indge, BUS, 150, 1, 15, 15, 13, Mon,Wed,Fri, 09:00, 10:00, Roberts, 210, 1, 10, 9, 13, Mon,Wed,Fri, 08:00, 09:00, Rasid. After listening to this information, do you have any idea where biology 205 is supposed to be held? Probably not. When you listen to tables straight through, without going into *table reading mode* in a screen reader, this type of information can be quite confusing. Even when you do go into table reading mode, it can still be confusing if the table is not marked up properly. ## Layout Tables vs. Data Tables There are two basic uses for tables on the web: data tables and layout tables. The original intended use of HTML tables was for *tabular data*. A table is a data table when row headers, column headers, or both are present. For example, here is a simple data table: | Name | Age | Birthday | | --- | --- | --- | | Jackie | 5 | April 5 | | Beth | 8 | January 14 | Tables are also commonly used for page layout. Layout tables do not have logical headers that can be mapped to information within the table cells. Layout tables were traditionally used to overcome limitations in visual presentation and layout using HTML. With CSS, however, there is much more flexibility in controlling page layout, so it is best to not use tables to do this. Using CSS results in cleaner and more simple HTML code, better end user adaptability, and few potential accessibility issues. Layout tables are also not supposed to be used in HTML5. It is sometimes suggested, even by some accessibility advocates, that layout tables are bad for accessibility. In reality, layout tables do not pose inherent accessibility issues. There are certainly many worse things that you could do in terms of accessibility. People with all kinds of disabilities can easily access layout tables, as long as the tables are designed with accessibility in mind - ensuring proper linearized reading order, content scaling, etc. ## Layout Table Linearization Content linearization refers to the order of the content when all formatting is removed. For both data and layout tables, the order in which content is presented can affect its meaning. Many web sites use tables for layout, and most of them use spanned rows and columns to achieve formatting effects. The end result is that the linearized reading order may not be the same as the visual reading order. This can lead to confusion on the part of people who access the linearized reading and navigation order, such as individuals who use screen readers or who navigate with keyboards. Screen readers essentially ignore the fact that the content is inside of a table. The screen reader just reads the content in the literal order that it appears in the code. If the literal order of the content in the code is logical, then your linearized reading order is logical. Important Screen readers treat layout tables and data tables very differently. For layout tables, they simply read the content of table based on the source code order. For data tables, however, they will identify the presence of the table including number of columns and row, provide table navigation functionality, read row and column headers, etc. **So how does a screen reader know if a table is a data table or a layout table?** They perform some analysis of the table markup and structure to 'guess'. Because of this, it's vital that data table markup, such as `