WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: PDF tagging structure

for

Number of posts in this thread: 2 (In chronological order)

From: Claire Forbes
Date: Mon, Sep 30 2024 11:04AM
Subject: PDF tagging structure
No previous message | Next message →

Good afternoon,
I have a question about the tagging structure and nesting images within list tags - examples below, hopefully the images come through here.
In a PDF file there are lists with images that relate to each step (<LI> tag) - would the image be nested within the <L> tags or should they stand alone as a tag outside the list structure?

[cid:image003.png@01DB1339.4EC09870]

Thank you!
Claire

From: Duff Johnson
Date: Mon, Sep 30 2024 3:08PM
Subject: Re: PDF tagging structure
← Previous message | No next message

Neither of the “options” in your screen-shot is correct....

Option 1 is wrong because <Figure> is not a legal child of <L>.

Option 2 is wrong because the <Figure> is between the two Lists, not enclosed within a list-item.

If the image is supposed to be part of the list item then it needs to be tagged within that list item’s <LBody> tag, for example… (please excuse the pseudo-code):

<L>
<LI>
<Lbl> “2."
<LBody>
<P>"Select F2F…"</P>
<Figure alt=“alt text for the image”>Image</Figure>

You may find this resource to be of value:

https://pdfa.org/accessibility/

In particular...

https://pdfa.org/resource/tagged-pdf-best-practice-guide-syntax/

Duff Johnson
PDF Association
pdfa.org

> I have a question about the tagging structure and nesting images within list tags - examples below, hopefully the images come through here.
> In a PDF file there are lists with images that relate to each step (<LI> tag) - would the image be nested within the <L> tags or should they stand alone as a tag outside the list structure?
>
> [cid:image003.png@01DB1339.4EC09870]
>
> Thank you!
> Claire
> > >