About Arbortext Styler > Document Preview and Publishing > Generating Accessible HTML Output > Semantic HTML Output
  
Semantic HTML Output
HTML tags are included in HTML output during a publishing operation, where elements, contexts, and conditions in a source XML document are associated with default HTML tags based on the style given to the elements in the stylesheet. You can elect to add additional context to some tags in the output by specifying that the stylesheet should generate semantic HTML. In semantic HTML output, paragraphs and division titles are assigned to semantic tags that define their use, i.e. p, and h1h6.
Output semantic HTML output
This procedure describes how to set your stylesheet so that semantic HTML output is generated from your source XML.
1. Navigate to the HTML tab of the Stylesheet Properties dialog box. Check the relevant Generate semantic HTML/XHTML option.
2. In Arbortext Editor, choose the File > Publish menu option and select the required HTML output type. Elect to use the stylesheet with the Generate semantic HTML/XHTML option selected.
3. Click OK to complete the publishing operation. Your HTML output will include a set of default HTML tags, with additional contextual information applied in the form of p tags for each paragraph, and h tags for each division title, numbered according to their hierarchy level.
The table below describes how outputting semantic HTML changes the HTML tags output for certain XML elements:
Style
HTML tag in regular HTML output
HTML tag in semantic HTML output
Paragraph (block)
div
p
Paragraph (inline)
span
span
Title
table or div1
h1–h6

1 depending on setting of Format titles as tables field in HTML tab of Stylesheet Properties dialog box

You can manually override the HTML tag and attributes that are assigned to an element by default when HTML is generated. You can also include alternate text for graphics in your HTML output.