H1

The <h1> tag displays a headline of level 1.

It can only be used within <body>.

See also h2 and h3.

Example

<body ...>
  <h1>Headline 1</h1>
  ...
<body>

Attributes

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

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

Last updated

Was this helpful?