How to do headers in markdown

Markdown actually uses two types of headers, the first type is Setex headers and is probably less widely known. To use them simply add equal signs (for h1) or dashes (for h2) beneath the header text:

# h1

## h2

Alternatively you can just use the more widely known atx header which simply use hash # symbols like so:

# h1

## h2

### h3

#### h4

##### h5

###### h6

which will give us headers:

h2

h3

Bear in mind this will only give us the default headers as defined in our global CSS configuration for our webpage or app and if you want to customize their look, size etc. you'll need to look there.