How to make horizontal line in markdown

quick-fix1 min read

Short article on how to make horizontal line in markdown using the hyphens, asterisks, or underscores on a line.

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

Related Posts