xTxT Documentation

Headings (/h1 /h2 /h3 /h4 /h5 /h6)

Identifies a section heading title.

/h1 
Heading Level 1
/h2 
Heading Level 2
/h3 
Heading Level 3
/h4 
Heading Level 4
/h5 
Heading Level 5
/h6 
Heading Level 6

When the document is rendered as HTML, this emits as;

<h1>Heading Level 1</h1>
<h2>Heading Level 2</h2>
<h3>Heading Level 3</h3>
<h4>Heading Level 3</h4>
<h5>Heading Level 3</h5>
<h6>Heading Level 3</h6>

Attributes

$style
Defines a CSS style string that will be applied directly to the HTML element.

Example

Like all HTML, the actual appearance of content depends heavily on CSS. Using the current CSS for this documentation site, it renders as;

Heading Level 1

Heading Level 2

Heading Level 3

Heading Level 4

Heading Level 5
Heading Level 6