...
- Assign each Paragraph Style to a tag like H1, H2, P, etc.
Paragraph Styles > Right-click a style to bring up the Options > In the left menu, the bottom item: Export Tagging > Under PDF (bottom), select the tag from the drop-down
Note: Various Paragraph Styles can be created for the same heading type.
...