Headings H1–H6

Create document structure with heading levels

Markdown Source

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Rendered HTML Output

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

Explanation

Use 1–6 hash symbols (#) at the start of a line. Optionally, ATX-style allows closing hashes: ## Heading ##. Setext-style uses underlines for h1 (===) and h2 (---).

Tips & Common Mistakes

Related Markdown Examples

Try It

Markdown Preview Tool →

All Examples