Tagging a Data Table (Desktop and Advanced Editor)

Modified on Sat, 14 Jun, 2025 at 10:57 AM

Data Tables are used in documents as a way to share relationships between data. If tagged properly, assistive technology will share with a listener that there is a table of “X” number of columns and “Y” number of rows and then associate data with headers in the table. Tagging appropriately is the only way to ensure that the data is shared in a logical and clear way.

There are two ways to create and tag a data table:

  • Using the "Generate Tag from Selection" Feature: This method allows CommonLook to tag the table components to the best of its ability. Based on how the document was constructed, this can frequently be completely accurate and not require any cell manipulation or size adjustments, but always check table construction for mistakes. Think of this option as letting CommonLook doing the heavy lifting, and the user cleans up anything that needs attention. 
  • Manually Tagging a Table: This method allows the user to decide how specific table elements are tagged as they go. This can result in a more accurate tagging outcome, so it can sometimes be more efficient but will result in more software commands made by the user.
     

A recommended strategy is to use the "Generate Tag from Selection" method and then use the manual tagging approach to correct tagging issues if necessary. 

Generating a Table from Selection (Recommended)

The act of generating a table from a selection allows CommonLook to tag table components to the best of its ability. Based on how the document was constructed, this can frequently be completely accurate and not require any cell manipulation or size adjustments, but always check table construction for mistakes. Think of this method of table construction as letting CommonLook do the heavy lifting, and the user cleaning up anything that needs attention. The following steps will articulate how to generate a table using the "generate tag from selection" tool group. 

  1. In the physical view of the document, highlight the table.
  2. In the Insert Tag tab, on the far right side, there is the “Generate tag from selection” group.  Click “Table.”
    Note: When using this method to automatically generate a table, be sure to use the button on the right side of the Insert tag tab as shown in the screenshot below. There is a different "Table" tag to the left that is used to manually tag tables. Using the Table button in the "Generate tag from selection" group creates not only the Table tag but the tags that fall within it, such as table rows and table data cells.
    A table is highlighted in the physical view and the Generate Table button is identified in the ribbon.
  3. Make sure that the new Table tag is in the proper reading order in the Tags tree.  Remember “Level up” (Ctrl+P) as needed to move it out to the root level.
  4. Cleanup empty tags that remain after creating the table.  Refer to the article on Cleaning Up Empty Tags if needed. 
  5. Right-click (or otherwise open the context menu) on the Table tag and select “Show table editor” from the context menu.  Verify and/or correct the following:
    1. Table and cell layout.  For more information, refer to the "Adjusting Cell & Table Layout in the Table Editor" section of this article titled, "Correcting a Generated Table."
    2. Header cells and their respective scope. For more information, refer to the "Tagging Header Cells & Assigning Scope" section of this article titled, "Correcting a Generated Table."
  6. After work in the table editor is complete, select the “x” in its upper-right corner to close the table editor.

The "X" to close the table editor is highlighted.

Manually Tagging a Table

If a table does not generate well using the “auto-generate” feature as described above, users may decide to manually build or correct the table.  While there are many ways to accomplish this task, one method is described below.  In this method, we will build the table from the inside - out. We will begin with tagging the individual cells and then assembling the cells into rows and then, finally, putting all of the rows into a Table tag.  For the screenshots, and steps, we will be building the simple table shown below.
The simple table to manually tag as described in the preceding paragraph.  It has one (top) row of column headers, one column of row headers (the left-most column) and a total of four columns and five rows. 

The simple table to manually tag as described in the preceding paragraph with Column and row headers marked respectively.

To build the table:

  1. In the physical view of the document, highlight the word “Day” in the top-left cell of the table.  (If you seem to be accidentally selecting the lines of the table, refer to the Selection group in the Settings tab.  This will allow you to control what you are selecting and make table construction more effective.)
  2. In the Insert tag tab, in the Table group, click the TH button.
    In the physical view of the table, the word "day" is selected and, in the Insert tag tab, the button to create a table header cell is highlighted.
  3. If needed, press Ctrl+P (or right click on the new TH cell just created) to “Level it up” and move it out to the Tags root level.
    The Table header cell is created and shown nested in a paragraph tag.  It should be moved to the Tags root level.
  4. Repeat Steps 1-3 with the remaining cells in the top row of the table.
    Tip:  Using “Sticky Button” can be a very helpful feature to quickly and efficiently tag these TH cells!  Refer to the section on Sticky Buttons if needed.
    All of the header cells in the top row are selected, they have been tagged as TH cells, and the tags are highlighted in the Tags tree.
  5. Repeat Steps 1-3 (highlight, tag as TH, and “Level up”) for the first cell in the second row of the table.The first cell in the second row is tagged as a TH.
  6. In the physical view, highlight the second cell in the second row of the table.  In the Insert tag tab, click the button in the Table group to create a TD (data cell) and then “Level up.”
    The second cell in the second row is tagged as a TD.  The tag is shown in the Tags tree and the TD button is highlighted in the Insert tag tab.
  7. Repeat Step 6 for the other data cells in the second row of the table.
    The rest of the cells in the second row have been placed in TD tags as verified in the Tags tree.
  8. Repeat Steps 5-7 on the remaining rows of the table.  This will create a TH for the first cell in each row and TD cells for the remaining cells in each row.
    The Tags tree showing all of the header and data cells created and organized by row.
  9. After all of the cells for each row have been tagged, select all of the tags that belong to the cells in the first row.
    Tip: Changing the Selection option to “Tags” in the Settings tab, and then highlighting the top row of the table in the physical view, will result in all of the TH tags being selected.
    All of the header tags for the top row of the table are selected in the Tags tree.
  10. In the Insert tag tab, in the Table group, click the button to create a TR (table row) tag.
    Tip: When the TR is created, it will be open, showing the cells inside. Closing the tag may help to reduce “clutter” and make it easier to see and tag the other table rows.The tags for the first row of the table are all selected in the tags tree and the button to create a TR tag is highlighted in the Insert tag tab.
  11. Row by row, select the tags and place them in TR tags.  When this step is finished, each row’s cells will be in their own TR tag and there will be a total of five TR tags in the Tags tree.  (The screenshot below shows the five TR tags in the Tags tree.)
    The TR tags in the tags tree.
  12. Select all of the TR tags and, in the Insert tag tab, in the Table group, click the button to create a Table tag.
    The TR tags are all selected in the Tags tree and the button to create a Table tag is highlighted in the Insert tag tab in the ribbon.
  13. Right click on the Table tag and, from the context menu, choose “Show table editor.”
    The context menu for the Table tag.  The option to show the table editor is highlighted.
  14. When the Table Editor opens, the TH cells that were created in the preceding steps will appear blue and the text will be in bold font.  This is simply to indicate which cells are marked as headers and which cells are data cells.  Select all of the cells in the top row in the Table Editor.  (Use the Shift or Control keys to multi-select.)
    The table editor is open and the cells in the top row are selected.
  15. At the top of the Table Editor, click the fifth button from the left to assign the scope of column to the selected header cells.  (Technically, this button will convert data cells to TH cells and assign the scope of column.  Since the cells were created as TH, that step is done but they still need scope.)
    The button in the table editor to convert cells to headers and assign their scope as column headers is highlighted.
  16. In the Table Editor, select all of the row header cells (the cells in the first column on the left except the very first cell – “Day” in this example).
    The row header cells are selected in the table editor.
  17. At the top of the Table Editor, click the second button from the left to assign the scope of row to the selected header cells.  (Technically, this button will convert data cells to TH cells and assign the scope of row.  Since the cells were created as TH, that step is done but they still need scope.)
    The button in the table editor to convert cells to header cells and to assign the scope of row is highlighted.
  18. Click the “x” at the top right corner of the Table Editor to close it.

Below is a screenshot of the fixed table.  The row headers are still selected (after completing Step 17, above) and in the Properties panel, on the right, the scope is set to “row.”  This is an excellent way of checking that your scope assignments are accurate.  In addition, in the Tags tree, the user can verify that these cells remain as TH cells.

The table editor, Tags tree, and cell properties as described in the preceding paragraph.

Note:  For an explanation of the other buttons at the top of the Table Editor, refer to the article titled, "Table Editor Buttons."

 

Didn't find what you're looking for? Navigate to our "Tables" section for more related articles that may help!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article