Skip to main content
Participating Frequently
September 15, 2024
Question

How to Tag a Caption with a Label

  • September 15, 2024
  • 1 reply
  • 1550 views

Hello!

 

I'm tagging  a document to make it accessible, and it contains a figure with a caption that both labels the figure and contains standalone text. For example,

 

"Figure 2. This is the caption of the above figure."

 

The PDF assocation Tagged PDF Best Practice Guide: Syntax states:

 

"In tagged PDF, <LBL> elements are not limited to lists, and are always explicitly contained.  <Lbl> structure elements may be used whenever content serves as a label for some other content, for example, “Fig: 123” in a caption for a <Figure>."

 

This and other guidance make me think that tagging such a caption as stated (a caption parent tag for the whole caption with a label child tag for the labelling text such as "Figure 2") would be best practice. However, I can't find guidance on how to correctly create such a tag structure in Acrobat Pro DC, or what the corresponding container structure as viewed in the content panel should look like. 

 

Another accessibility requirement is that the caption for a figure element must follow the figure tag, rather than be a child of the figure tag. (This is because the figure alt text will override the caption text, making the text of the caption inaccessible to a screen reader.)

 

I'm pretty sure most of my attempts so far have been incorrect, as the accessibility checker throws a list error for every configuration I've tried.

 

How can you correctly create a caption tag with a child label tag in Acrobat Pro?

1 reply

Souvik Sadhu
Community Manager
Community Manager
February 5, 2025

Hi @alice_2020,

 

Hope you are doing well. Thanks for writing in!

 

If you are still looking for a solution, you can try the steps mentioned here:

1. Ensure the Figure is Properly Tagged

  1. Open the Tags panel (ViewShow/HideNavigation PanelsTags).
  2. Locate the Figure tag (<Figure>).
  3. Right-click the Figure tag and select Properties.
  4. In the Alternative Text field, enter a short image description.

2. Add a Caption Tag After the Figure

  1. Right-click the Figure tag and select New Tag.
  2. Set the type to <Caption>.
  3. Ensure the <Caption> tag appears AFTER the <Figure> tag (not inside it).

3. Add a Label Inside the Caption

  1. Right-click the <Caption> tag and select New Tag.
  2. Set the tag type to <Label>.
  3. Right-click the <Label> tag, select Create New Text, and type the label (e.g., "Figure 2:").
  4. Drag this Label tag inside the Caption tag.

4. Add Caption Text

  1. Right-click the <Caption> tag and select New Tag.
  2. Set the tag type to <P>.
  3. Move the actual caption text inside the <P> tag.

Hope this helps.


-Souvik