# AddStyleMapping

This method maps a character or paragraph style to arbitrary markup. See Map Styles for more information on style mapping.

    HTM.AddStyleMapping(StyleName, MarkupStart, MarkupEnd, nFlags)

where:

- `StyleName` is the name of the word processing style (for example, "Heading 1") to which style mapping is applied. Style names are case sensitive.
- `MarkupStart` is the markup to be added at the beginning of the content (for example, `<h1>`).
- `MarkupEnd` is the markup to be added at the end of the content (for example, `<\h1>`).
- `nFlags` is the flag set for this markup. A flag specifies how the content associated with the style should be processed. Possible values are enumerated in `kvtypes.h`. See Flags for Defining Styles for a description of the flags.

NOTE: By default, HTML Export maps the heading style "Heading 1" to `<h1></h1>`, and so on, for heading levels 1 through 6. If you use style mappings, the default mapping is overridden. Therefore, you must supply markup for all heading levels. HTML Export uses heading levels to define the overall structure of the HTML output.

_FT_HTML5_bannerTitle.htm