Markdown Horizontal Rule: Divider Lines with ---
A horizontal rule draws a line across the page to separate parts of a document. Write three dashes --- on a line by themselves. Leave a blank line above them, or the line above turns into a heading.
The rule
Three dashes --- on a line by themselves draw a line across the page. Leave a blank line above them, or the line above turns into a heading.
You type
Part one
---
Part twoYou get
Part one
Part two
Try it yourself
Write Morning, then a divider line, then Afternoon.
Live preview
More examples
You type
Part one
---
Part twoYou get
Part one
Part two
A divider between two parts.
You type
Part one
***
Part twoYou get
Part one
Part two
Three asterisks or three underscores make the same line.
Common mistakes
You type
Part one
---
Part twoShows as
Part one
Part two
No blank line above ---, so "Part one" becomes a heading instead.
You type
--Shows as
--
Two dashes are not enough; you need three or more.
Where it works
Everywhere Markdown works.
Keep it, not just learn it
The full course has 22 skills on five islands, short Missions that check your answers, and reviews a few days later so it sticks. Free, no sign-up.