Advanced Elements·14 / 19

Horizontal Rules

Create visual dividers between content sections.

Horizontal Rules

Horizontal rules create a visual line that separates content sections.

Syntax

You can use any of these (3 or more characters):

---
***
___

All three produce the same result — a horizontal line.

Usage Example

## Section One

Content for section one goes here.

---

## Section Two

Content for section two goes here.

Important Rules

  • Use three or more characters
  • Put a blank line before and after the rule
  • With ---, make sure there's a blank line above it, otherwise it may be interpreted as a heading underline

Best Practices

  • Use --- consistently (most common)
  • Don't overuse horizontal rules
  • Use them to separate major sections of content
  • They're useful in long documents to break up content

💡 Think of horizontal rules as chapter dividers in a book.

Practice

Markdown Input
Live Preview

Section One

This is the first section of content.


Section Two

This is the second section.


Section Three

This is the third section.