How to make horizontal line in markdown

featured Image

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

How to underline in markdown

How to change image size in markdown in GitHub

Checkbox inside GitHub Markdown Table

Related Posts

featured Image

Disable scrolling Behavior on a body with element on position fixed in mobile

Here in this article, we will learn on how to disable the scroll behavior of the body whenever we scroll over an element whose position is fixed in our mobile…

Read more
featured Image

How to Remove Underline from Links in Bootstrap.

In this article, we will learn how to remove the underline from anchor tags in Bootstrap. Just like any other HTML element, links can also be styled using CSS. We…

Read more
featured Image

How to disable the resizable property of a textarea

In this article, we will see quick ways to disable the resizable property of a textarea using CSS. In CSS, we can disable it using the resize property. Set resize…

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *