Skip to main content

<h1>-<h2> : Headings

The <h1> to <h2> elements are used to display headings. With the <h1> element being 3x the size of normal text and the <h2> element being 2x the size of normal text.

Attributes

These elements only inherits the attributes from TextAttributes.

Examples

The following example will display a heading with the text "Hello World!".

<h1>Hello World!</h1>

The following example will display a heading with the text "Hello World!" and the color red.

<h1 color="red">Hello World!</h1>

The following example will display a smaller heading with the text "Hello World!".

<h2>Hello World!</h2>

Version History

VersionChanges
1.2.1Now inherits styles from TextAttributes.
1.0Initial release.