Apply specific HTML Tags to paragraph styles

Publishing

You can use styles to apply nearly any HTML tag to paragraphs when you publish to HTML. This is useful for a number of scenarios, such as if you want to use <div> to apply your own CSS, or you want to import the HTML into a website or application that has specific tagging requirements.

  1. In Author, open the style object of the paragraph style you want to apply the HTML tag to.

  2. Go to Web > List Style > HTML tag.

  3. Select your required HTML tag.

    When you publish to HTML, any paragraphs that have this paragraph style will be wrapped in this tag. For example:

    <div class=ExampleParagraphStyle>Acme teleportation devices.</div>
    <p class=SecondExampleParagraphStyle>Acme teleportation device accessories.<p>