This article demonstrates automatic SEO-friendly heading IDs for table of contents navigation.
Benefits of Automatic IDs
Each H2 heading now gets a unique, URL-friendly ID based on its text content. This enables:
- Deep linking to specific sections
- JavaScript-powered table of contents
- Better SEO with semantic anchors
How It Works
The WebflowPublisher automatically processes all H2 tags:
- Extracts heading text
- Generates slug-based ID (removes stop words)
- Handles duplicates with -2, -3 suffix
- Preserves existing IDs if present
Example Deep Link
You can now link directly to this section using #example-deep-link in the URL.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Block quote
Ordered list
- Item 1
- Item 2
- Item 3
Unordered list
- Item A
- Item B
- Item C
Bold text
Emphasis
Superscript
Subscript


















.avif)



.avif)

.avif)

