# 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.

© Copyright 2006-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm