• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

<Caption> and <Table> tag

Community Beginner ,
Jun 13, 2018 Jun 13, 2018

Copy link to clipboard

Copied

Good morning,

What is considered a Best Practice regarding Caption  and Tables tag?

  1. To have the <Caption> tag nested Inside the <Table> tag, and then all the <TR>. See Table 1 screenshot below.
  2. Or is it better to have it just above it, as a sibling of the <Table> tag? See Table 2 screenshot below.


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>.

Table1.pngTable2.png

TOPICS
Standards and accessibility

Views

4.5K

Translate

Translate

Report

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
Adobe Employee ,
Jun 27, 2018 Jun 27, 2018

Copy link to clipboard

Copied

LATEST

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

View solution in original post

Votes

Translate

Translate

Report

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
Engaged ,
Jun 13, 2018 Jun 13, 2018

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

Votes

Translate

Translate

Report

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
Adobe Employee ,
Jun 27, 2018 Jun 27, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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