Markdown Horizontal Rules
You can create a horizontal rule on a line by themselves, by use the following three methods:
- *** three or more asterisks
- --- three or more dashes
- ___ three or more underscores
Syntax:
***
---
___
| Markdown | HTML | Output |
|---|---|---|
|
This is paragraph one. *** This is paragraph two. |
<p>This is paragraph one.</p> <hr> <p>This is paragraph two.</p> |
This is paragraph one. This is paragraph two. |
|
This is paragraph one. --- This is paragraph two. |
<p>This is paragraph one.</p> <hr> <p>This is paragraph two.</p> |
This is paragraph one. This is paragraph two. |
|
This is paragraph one. ___ This is paragraph two. |
<p>This is paragraph one.</p> <hr> <p>This is paragraph two.</p> |
This is paragraph one. This is paragraph two. |
Advertisement
The following example show how to use *** three or more asterisks.
Example
This is paragraph one.
***
This is paragraph two.
The following example show how to use --- three or more dashes.
Example
This is paragraph one.
---
This is paragraph two.
The following example show how to use ___ three or more underscores.
Example
This is paragraph one.
___
This is paragraph two.
The best practices and for compatibility, put blank lines before and after horizontal rules.
Example
### Without blank lines before and after horizontal rules
This is paragraph one.
***
This is paragraph two.
### With blank lines before and after horizontal rules
This is paragraph one.
***
This is paragraph two.
You can also use HTML <hr> tag for Horizontal Rules.
Example
This is paragraph one.
<hr>
This is paragraph two.