<h2>

Description

A level 2 heading.

Text within level 2 headings is searched during index construction.

Attributes

In addition to the following attributes, standard attributes may be defined on <h2> elements.

Attribute name Description
toc Include 'true' or exclude 'false' in the automatically generated table of contents.

Immediate descendants

<h2> elements may contain text.

No element descendants are defined for the <h2> element.

Immediate ancestors

Element name Relation
<chapter> The chapter containing the heading.

Example

<document xmlns="http://boradoc.org/1.0">
  <chapter>
    <h2>A heading</h2>
    <para>A paragraph of text.</para>
  </chapter>
</document>

The above BDML renders to the following:

A heading

A paragraph of text.