PDF Editing Issues

How to Manage Span Tags in InDesign PDFs for 508 Accessibility Compliance

Olivia MillerOlivia Miller Nov 24, 2026 870 views

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.

How to Manage Span Tags in InDesign PDFs for 508 Accessibility Compliance
Product
PDF
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 you start

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.

Solution 1Recommended

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.

1
Clear manual overrides

Select your text and clear any local, manual formatting overrides. No manual formatting should be used in the document.

2
Apply global styles

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.

3
Use the Style Highlighter

Turn on the Style Highlighter in InDesign. Ensure there is no 'swimming pool green' highlighting, as this indicates where manual formatting was improperly applied.

4
Export the document

Once all manual overrides are eliminated, proceed to export your document to PDF with 'Create Tagged PDF' enabled.

Prevent Span Tags by Using Strict Formatting in InDesign
Best Practice: Relying purely on defined Paragraph and Character styles ensures a clean tag tree and significantly reduces post-export cleanup work.
Complete PDF Solution

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. 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. 2. Format with precision: Ensure all emphasis is applied using designated styles rather than overlapping manual adjustments to maintain clean underlying document structure.
  3. 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.
Create well-structured text layouts using strictly defined built-in stylesEasily export Writer documents to clean, standardized PDF formatsHighly compatible with Microsoft Office formats and standard PDF readersFree, lightweight, and intuitive interface for seamless document creation
microsoft office alternative - wps office

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.