Copy link to clipboard
Copied
Good morning,
What is considered a Best Practice regarding Caption and Tables tag?
I tested both examples with the PAC and with CommonLook and they are both OK, but I would like to know what is considered best practice.
Thanks, Rosana
PS: Also, Sometimes, depending on the context, also a heading level can be used instead of using the <caption>.
Copy link to clipboard
Copied
Hi Rosana
As Olaf already mentioned, per the PDF specifications - "A structural element is understood to be "captioned" when a Caption structure element exists as an immediate child of that structure element. The Caption shall be the first or the last structure element inside its parent structure element."
So, it should be an immediate child of the table (or figure/ other applicable constructs)
[Moderator: Response edited]
Thanks
Vivek
Copy link to clipboard
Copied
According to the PDF standard, if you have a Caption inside a Table it must be the first or last child in inside the Table tag.
The PDF standard though does not mandate that you have to have the Caption for Table inside the Table, thus it may be OK to also have the Caption right before or right after the Table.
I have neither data nor own experience to estimate what might work best for certain types of assistive technologies (e.g. screen readers) or repurposing tools (e.g. for reflow) or certain groups of users.
Olaf
Copy link to clipboard
Copied
Hi Rosana
As Olaf already mentioned, per the PDF specifications - "A structural element is understood to be "captioned" when a Caption structure element exists as an immediate child of that structure element. The Caption shall be the first or the last structure element inside its parent structure element."
So, it should be an immediate child of the table (or figure/ other applicable constructs)
[Moderator: Response edited]
Thanks
Vivek