---
title: "Headlines and anchors"
manual: "How to Document"
version: "main"
permalink: "https://docs.typo3.org/permalink/h2document:headlines-and-sections"
source: "Reference/ReStructuredText/Menus/HeadlinesAndSection.rst"
rendered: "2026-09-19T10:25:29+00:00"
---

# Headlines and anchors {#headlines-and-sections}

Each reST document must have a title. It is overlined and underlined like this:

```rst
..  _rest-cheat-sheet:

=============================
Cheat sheet: reStructuredText
=============================
```

The anchor is used for permalinks. It should be lowercase with dashes between
words. During rendering special signs are converted into dashes and all letters changed to
lowercase if you ignore this.

Use headers to divide your document into sections. Start with h2:

By convention we use the following underlines:

**Documentation/MyDocs.rst**

```plaintext
..  _rest-cheat-sheet:

=============================
Cheat sheet: reStructuredText
=============================

Some text.

..  _h2-headline:

H2 Headline
===========

Lorem Ipsum

..  _h3-headline:

H3 Headline
-----------

Some more text

```

Further headline levels are possible:

```rst
..  _h4-headline:

H4 Headline
~~~~~~~~~~~

..  _h5-headline:

H5 Headline
"""""""""""

..  _h6-headline:

H6 Headline
'''''''''''

..  _another-h2-headline:

Another H2 Headline
===================
```

They look like this:

## H2 headline {#h2-headline}

### H3 headline {#h3-headline}

#### H4 headline {#h4-headline}

##### H5 headline {#h5-headline}

###### H6 headline {#h6-headline}

## Syntax of headlines {#syntax-headlines}

The underlining special signs should be as long as the line but this is not
enforced.

Each headline should have an anchor. Otherwise permalinking does not work.

In the official docs recommend to never delete an anchor. If a concept is
removed without substitute, move the anchor to a special page when and why the
concept was removed.
