---
title: "h1 – h6"
slug: "h1---h6"
abstract: ""
---
# h1 – h6

The transformation elements for h1-h6 match the h1-h6 tags to ParagraphStyle.

|     |     |     |
| --- | --- | --- |
| **Attribute** | **HTML to XML** | **XML to HTML** |
| style | Node without class attribute is matched to Style="Heading<i>"<br><br>"anyClassValue" is matched to Style="anyClassValue" | Style="Heading<i>" is matched to node without class attribute. |
| default style | Node without class attribute is matched to Style=""<br><br>"anyClassValue" is matched to Style="anyClassValue" | Style="anyStyleValue" is matched to class="anyStyleValue". |

In order to find the definition for h1, all paragraph styles used for h1 (such as *Heading1*) should have the Export Tag property set to *h1* in InDesign.

From HTML to XML – all attributes are default match attributes. Therefore, the first attribute will be applied for the node, and all <h1> tags are changed to <ParagraphStyle Style="Heading1">

From XML to HTML – the first attribute is an exact match and the "default style" attribute is a default match. If the style value is anything other than Heading1, the "default style" attribute is used.