Advertisement
❮ Previous: Markdown Code/Code Blocks Next: Markdown Lists ❯

Markdown Horizontal Rules

You can create a horizontal rule on a line by themselves, by use the following three methods:


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.

Try this code ❯

The following example show how to use --- three or more dashes.

Example

This is paragraph one.

---

This is paragraph two.

Try this code ❯

The following example show how to use ___ three or more underscores.

Example

This is paragraph one.

___

This is paragraph two.

Try this code ❯


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.

Try this code ❯


You can also use HTML <hr> tag for Horizontal Rules.

Example

This is paragraph one.

<hr>

This is paragraph two.

Try this code ❯

❮ Previous: Markdown Code/Code Blocks Next: Markdown Lists ❯
Advertisement