There are two ways to define headers:
(I prefer the first one as it's more readable when looking directly at the source code)
The good thing is that many tools that convert Markdown in HTML or PDF are able to generate the index of your document, or links to the headers automatically (like Github does on the source of Markdown files)