How to Manage Span Tags in InDesign PDFs for 508 Accessibility Compliance
Question details
The user needs guidelines on removing or managing automatically generated span tags in PDFs exported from Adobe InDesign to meet Section 508 accessibility requirements.

- Product
- Device & OS
- not provided
- Scenario
- Exporting structured PDFs from Adobe InDesign that can pass strict Section 508 accessibility checks for screen readers.
- Observed behavior
- Exported PDFs contain non-semantic, automatically generated span tags that cause compliance issues with screen readers.
Before modifying your document, ensure you understand Section 508 compliance requirements and have access to your original InDesign file or a PDF editor with a fully functional Tag Panel.
Prevent Span Tags by Using Strict Formatting in InDesign
The most effective method is to prevent unnecessary span tags during the document creation phase by avoiding manual formatting overrides.
Unnecessary span tags are typically created when manual styling overrides are used instead of strict global styles. These tags are non-semantic and do not convey meaning to screen readers, which can lead to accessibility failures.
Select your text and clear any local, manual formatting overrides. No manual formatting should be used in the document.
Use strict Paragraph and Character styles to format all text. This practice sets the visual appearance and generates the correct semantic tags for the exported PDF.
Turn on the Style Highlighter in InDesign. Ensure there is no 'swimming pool green' highlighting, as this indicates where manual formatting was improperly applied.
Once all manual overrides are eliminated, proceed to export your document to PDF with 'Create Tagged PDF' enabled.

Manually Remove Span Tags in the PDF Tag Panel
If you are working with an already exported PDF, you can manually strip out non-semantic span tags using an advanced PDF editor's accessibility tools.
Create and Manage Structured Documents with WPS Office
While highly specialized tag manipulation requires specific accessibility tools, WPS Office provides an excellent, lightweight environment for creating well-structured documents. You can easily author clean files using built-in heading styles and export them directly to PDF without complex formatting errors.
- 1. Create a structured document: Open WPS Writer and start a new document. Instead of manual formatting, use the built-in 'Heading' and 'Normal' styles from the Home tab.
- 2. Format with precision: Ensure all emphasis is applied using designated styles rather than overlapping manual adjustments to maintain clean underlying document structure.
- 3. Export to PDF: Click the 'Menu' button in the top left corner, select 'Export to PDF', and save your file for clean, lightweight distribution.

Frequently Asked Questions
What is a span tag in a PDF document?
A span tag (<span>) is an inline, non-semantic container often used for visual styling purposes. Because it does not convey structural meaning, excessive span tags can clutter the document and confuse screen readers used by individuals with disabilities.
Why does InDesign generate unnecessary span tags?
InDesign automatically generates span tags when local, manual formatting overrides (such as bolding a single word or changing a font color directly) are used instead of applying proper Character or Paragraph styles globally.
Are all span tags bad for 508 compliance?
Not all span tags are violations. Some are required for specific necessary inline shifts, such as indicating a change in language for a screen reader. However, purely visual, non-semantic span tags should be minimized or removed.




