Skip to content

H2

The <h2> tag displays a headline of level 2.

It can only be used within \.

See also h1 and h3.

Example

<body ...>
  <h2>Headline 2</h2>
  ...
<body>

Attributes

The <h2> tag inherits all attributes from <text>, including class, color, fontSize, align, spaceBefore, and spaceAfter.

By default, <h2> uses the h2 style class. You can override this with the class attribute.