Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Table accessibility

Participant ,
May 17, 2021 May 17, 2021

I have a table error. 

Regularity - Failed / Element 1.

2 questions.

In web table if you have a 3 column table, and you span 3, in the html, there is only one <td colspan-"3">

Is it the same in PDF? Should a cell spanning 3, have 3 <TD> or 1?

 

OR

this table is actually 3 pages long, with only one header cell.

Could one of these issues be causing the error?

TOPICS
Create PDFs , How to , PDF forms , Standards and accessibility
6.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
May 18, 2021 May 18, 2021

Yes you would use a ColSpan = "12" (the value must be an integer). It's fine for a table to span more than one page but all of the rows should be in a single <table> tag with one header row for the entire table.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 18, 2021 May 18, 2021

You receive the regularity error when all of the rows in a table don't have the same number of rows. To fix, you are correct in that you need to at a ColSpan or RowSpan attribute to tell the cell that it occupies the space of more than one cell. If you're familiar with HTML then you probably know how to do this. I also show this technique in my LinkedIn Learning course at https://www.linkedin.com/learning/creating-accessible-pdfs/the-table-editor?u=0.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 18, 2021 May 18, 2021

Yes, a colspan. So for example, you have a 5 row table with 12 columns.

first row spans all five columns. So the <td> I have bolded, are they required in PDF? On in the row, would there just be the <td colspan="5">?

<tr>

<td colspan="5">

<td>

<td>

<td>

<td>

<tr>

<td>

<td>

<td>

<td>

<td>

Also, what do you say about a table in a pdf that goes over 3 pages, with only 1 header row on P1.?

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 18, 2021 May 18, 2021

Typo

colspan="12"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 18, 2021 May 18, 2021

Yes you would use a ColSpan = "12" (the value must be an integer). It's fine for a table to span more than one page but all of the rows should be in a single <table> tag with one header row for the entire table.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 18, 2021 May 18, 2021
LATEST

Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines