In this post, we will learn how to make a horizontal line in markdown.
In HTML, we can create a horizontal rule by using the <hr/>
tag.
However, in markdown, we can create a horizontal rule by using 3 or more asterisks, underscores, or hyphens in a single line.
For example
asterisks
* * *
***
hyphens
- - -
---
underscore
_ _ _
___
If you are using markdown compilers to convert it to HTML, we will get
<p>asterisks</p>
<hr/>
<hr/>
<p>hyphens</p>
<hr/>
<hr/>
<p>underscore</p>
<hr/>
<hr/>
Related Topics:
How to write superscript and subscript in markdown
How to center align an image in markdown
How to do text highlight in markdown