Skip to content

Try our new Crash Courses!

Become a member using the button below to hide this banner and gain access to our new Crash Courses.

Horizontal rules – Markdown

Demo

Summary

Markdown:

Horizontal Rule 1

---

Horizontal Rule 2

***

Click here to see an example of what this code looks like when rendered on GitHub. (Click the Raw button to see the actual Markdown code.)

Details

There are two ways of writing horizontal rules in Markdown. You can create them by putting together 3 dashes or 3 asterisks on their own lines (you can also use more than 3 dashes or asterisks).

Exercises

First, recreate the code snippet from the Demo section in your Markdown file. Then try customizing the text.

References

Markdown Reference on CommonMark

Lesson tags: Free Lesson
Back to: Markdown Reference > Markdown Syntax