About Arbortext Styler > Arbortext Styler Window and Editors > HTML tag Category
  
HTML tag Category
The HTML tag category provides options for assigning HTML tags and attributes. Settings made here will be reflected in HTML outputs.
* 
Properties in this category are not inheritable.
The following table describes the properties in the HTML tag category.
Property
Description
Default Value
HTML tag
Choose an HTML tag for the selected element, context, condition, or property set.
The list of available tags in the drop down list depends on whether the item being styled is block or inline. It also reflects the setting of the Generate HTML5 option in the HTML tab of the Stylesheet Properties dialog box.
Select (No tag) to specify that an HTML tag should not be generated for the item. Styling will have no effect.
* 
You cannot assign an HTML tag for an element assigned any of the following styles: Cross Reference, Custom Table, Definition List, Definition List Item, Document, Footnote, Index, Link, Link Target (block), Preformatted (block), Table, Table of Contents, and No Style. The HTML tag control is disabled if the item has any of these styles. Refer to HTML Tags Permitted for Element StylesHTML Tags Permitted for Element Styles below for information on the style/HTML tag combinations that are permitted.
If you assign a tag to a property set that is not permitted for the element style it gets assigned to, the value will be ignored in output and the default tag for the style used.
Use Arbortext Styler’s Validate Stylesheet feature to confirm that the HTML tag you have assigned is valid for the current element style.
* 
It is possible that Validate Stylesheet will not flag all instances of unsuitable tag usage, especially if the output is valid but just does not display well. Always review your output to confirm it looks correct, and make tagging changes as required if not.
HTML attribute
The attribute that will be assigned to the HTML tag in HTML output. Choose an attribute from the drop down list or manually enter any valid XML attribute name.
If you enter an attribute that is automatically set during publishing, e.g. rowspan, colspan, lang, the value you supply for the attribute will override that automatically set. Note that this does not apply for the ID attribute.
Click Add or Edit to open the HTML Attribute dialog box. Here you can create or update any of the HTML attribute settings, including referencing a custom JavaScript function to be called. Click Delete to remove a setting.
Some HTML4 attributes are not allowed in HTML5. Refer to HTML Attribute Dialog Box for further information.
Appropriate CSS should be used when generating HTML5 instead.
XPath
An XPath expression corresponding to the setting made in the HTML Attribute dialog box to provide the value of the HTML attribute.
HTML Tags Permitted for Element Styles
The table below lists the element styles for which you are permitted to assign HTML tags, and the tags that you can use:
Style
Tags Permitted
Block (block)
(No tag), address, blockquote, div, p
HTML5 tags: article, aside, figure, nav, section
Block (inline)
(No tag), abbr, acronym, b, bdo, big, cite, code, dfn, em, font, i, kbd, q, samp, small, span, strong, sub, sup, tt, var
HTML5 tags: mark, time
Division
address, blockquote, div, p
HTML5 tags: article, aside, figure, nav, section
Formal Block
address, blockquote, div, p
HTML5 tags: article, aside, figure, nav, section
Hidden (block)
(No tag), a, div
Hidden (inline)
(No tag), a, span
Index Term
(No tag), span
Inline (block)
(No tag), address, blockquote, div, p
HTML5 tags: article, aside, figure, nav, section
Inline (inline)
(No tag), abbr, acronym, b, bdo, big, cite, code, dfn, em, font, i, kbd, q, samp, small, span, strong, sub, sup, tt, var
HTML5 tags: mark, time
Link Target (inline)
abbr, acronym, b, bdo, big, cite, code, dfn, em, font, i, kbd, q, samp, small, span, strong, sub, sup, tt, var
HTML5 tags: mark, time
List — Bulleted
div, ul
List — Numbered
div, ol
Paragraph (block)
(No tag), address, blockquote, div, p
HTML5 tags: article, aside, figure, nav, section
Paragraph (inline)
(No tag), cite, code, q, span, aside
Preformatted (inline)
(No tag), abbr, acronym, address, b, bdo, big, blockquote, cite, code, dfn, div, em, font, i, kbd, p, q, samp, small, span, strong, sub, sup, tt, var
HTML5 tags: article, aside, figure, mark, nav, time
Title
div, h1, h2, h3, h4, h5, h6
HTML5 tags: figcaption
Table of Contents
HTML5 tags: div, nav