From The Document Foundation Wiki
- open the Styles and Formatting side bar by going to ▸ ;
- put the cursor inside a paragraph that you want to be your title;
- double-click on the level of title you want in the Styles and Formatting sidebar, e.g. Heading 1; and
- mark all the titles of your document in the same way.