Skip to main content
Inspiring
June 14, 2023
Question

Invalid use of a "THead" structure element - NO Table or THead tag present

  • June 14, 2023
  • 1 reply
  • 3929 views

Hello, 

 

I created an accessible form however I have one issue, I keep getting "Invalid use of a "THead" structure element".

In the form I have NO tables, and I do not have any THead tags.

 

How do I fix this??

HELP!!

Thanks!

This topic has been closed for replies.

1 reply

Bevi Chagnon - PubCom.com
Legend
June 15, 2023

Hi @CyndyB836, I downloaded and examined your PDF and did not get the error about invalid use of the <THead> structure element.

I checked not just the tag tree, but also the architectural order (Order panel) and the Contents: could not find any remnants of the original layout table that was used to create the form.

 

What checker did you use that gave this error?

I wondering if there's some hidden <Table> code still in the file that's triggering the error.

 

FYI, this type of form is best built using Adobe InDesign, not Word. Several reasons:

  • InDesign's form tools let you insert the form fields directly in the layout so that they are there in the exported PDF and don't have to be added afterwards in Acrobat.
  • InDesign's table and general formatting tools are faster and easier to use.
  • There are 3rd party plug-ins you can install that allow for advanced control of the form fields and designating the table as a "layout table" to be artifacted in the PDF.
  • Using these tools and workflow, you can quickly edit and update the base form, and export a nearly-accessible PDF from InDesign. We have an upcoming class in this at www.PubCom.com (not that I'm here to promote our services).

 

Also noticed a few odd items in your PDF:

 

The above errors indicate that the PDF was heavily altered after it was created and that some key elements (lists) weren't correctly tagged, edited, or artifacted during the process.  It appears that this editing corrupted the PDF file itself, so I'm not surprised to see a negative checker report.

 

Suggestion:

Re-export a new PDF to get rid of the file corruption. To remove the <Table>  tags:

  1. First, drag each tag and its content out of the <Table> and drop it in the tag tree.
  2. After that's completed, then you can select the <Table> tag (now empty) and artifact it correctly. I'd do this in the Content pane: select <Table>, right-click, select Artifact.
  3. Make sure that the remaining content tags in the tag tree are correctly nested. Example, your lists must conform:
         <L>
             <LI>
                <Lbl> if you're using it
                <LBody>
  4. You can copy/paste the <Form> fields from the original PDF into the new one, which should save some time and labor. Just make sure they end up being correctly nested within their <P> or <LBody> tags.

 

Another option is to send this file to a professional remediator. Contact me off-list if you'd a recommendation from us. We have one firm that does a superb job with forms, is honest and reliable, and has very reasonable prices.

 

|&nbsp;&nbsp;&nbsp;&nbsp;Bevi Chagnon &nbsp;&nbsp;|&nbsp;&nbsp;Designer, Trainer, &amp; Technologist for Accessible Documents ||&nbsp;&nbsp;&nbsp;&nbsp;PubCom |&nbsp;&nbsp;&nbsp;&nbsp;Classes &amp; Books for Accessible InDesign, PDFs &amp; MS Office |
CyndyB836Author
Inspiring
June 15, 2023

Hi Bevi, 

Thank you so much for taking a look at this!!

 

In order to check the document I am using Pac 2021.

 

I would LOVE to use InDesign to create the forms, however I work for the Federal Governement and the forms I am transforming "belong" to other teams within my department. The form owners do not have InDesign on their comps and therefore would not be able to look over their documents to see if they agree with the changes I suggest. Additionallly, we collaborate with each division in order to create the form and the owners would have no idea on how to use InDesign to utilize the template I created for them.

 

For some reason when I tag the lists that way in Adobe PAC gives me an error. If I tag it that way in like Foxit PAC reads it fine...

Yes the document is very edited as you see, I do exactly as you suggest once I start working on a PDF.

 

If I don't correct the issue, what can happen? Like you said neither of us can find the tag it says I get an error with.

 

I honestly love when when I see your name popup when I ask a question! I know I will be getting the most indepth answer possible!

 

Thank you so much I GREATLY apprciate you!

Cyndy

Bevi Chagnon - PubCom.com
Legend
June 15, 2023

And I love your questions, Cyndy @CyndyB836 ! They're always thoughtful, looking for the best way to meet our end users' needs. Keep at it!

quote

If I don't correct the issue, what can happen? Like you said neither of us can find the tag it says I get an error with.

 

First, a little background. All of the checkers — Adobe Acrobat, CommonLook, PAC, and others — are just software programs that look for black/white technicalities. Is it tagged? Yes/No. Do lists have one or more <LI> tags? Yes/No.  None are perfect. None are as good a human testing.

 

We all must learn how to analyze the reports they give and decide whether the issue is valid or not.

 

RE: the <THead> tag error, let it go for now. I tested your file on 2 Windows computers with NVDA and it didn't choke on that. But correct the bigger issue with how your office is creating the forms so that this doesn't continue to happen. It might trip up some assistive technology, other than a screen reader. Remember, accessibility is for all people with any kind of disability and using any technology.

 

But some serious problems lie with these issues and they should be fixed before distributing this form. They are:

 

1. The lists, especially the one with 5 bullets on page 2. It's voicing is: "List. 1 item. bullet certificate...territorial one. bullet certificat de naturalisation two. etc."

 

So there's confusion/misinformation about how long the list is and when each bulleted item is being voiced. This list must conform to:

<L>
     <LI>
             <LBody>

     <LI>
             <LBody>

     <LI>
             <LBody>

    <LI>
             <LBody>

     <LI>
             <LBody>

 

The tag structure in the PDF when it was exported from Word should have automatically tagged it correctly, so I don't know how it got mangled into the hot mess it is now! But add new tags and drag/drop the appropriate content into them.

 

2. The second issue are the footnotes. Right now the superscript numbers are just inserting  "two" into the middle of a stream of text without any hyperlink to the footnote itself, or identification that they are a reference.

 

So grab each individual superscript number, wrap it in a <Reference> tag, and then hyperlink it to its footnote text at the bottom.

You'll also have to correct the footnote tags themselves. They should look like this:

<H3> Notes

<Note> 1. Une personne...

<Note> 2. Emis...

<Note> 3. Emis entre...

<Note> 4. Les personnes...

 

I've simplified the tag structures above: technically, footnotes and bullets should have <Lbl> tags as well, but they're not yet recognized by assistive technologies and the file will work without <Lbl>s.

 

All the other stuff worked fine. Text and headings were announced, and there was no mention of a table anywhere.

 

|&nbsp;&nbsp;&nbsp;&nbsp;Bevi Chagnon &nbsp;&nbsp;|&nbsp;&nbsp;Designer, Trainer, &amp; Technologist for Accessible Documents ||&nbsp;&nbsp;&nbsp;&nbsp;PubCom |&nbsp;&nbsp;&nbsp;&nbsp;Classes &amp; Books for Accessible InDesign, PDFs &amp; MS Office |