Markdown has a variety of different block elements.

  • Line breaks
  • paragraphs
  • Line return

paragraph line breaks in Markdown

Paragraph is a group of lines separated by a line break. Line break1 applies by adding a new line or backslash (`) symbol to the end of the line.

Here is a syntax

 paragraph line 1

 paragraph line 2
 paragraph line 3

Generated HTML code is

<p>paragraph line 1</p>
<p>paragraph line 2
paragraph line 3</p>

and output rendered on the browser is

paragraph line 1

paragraph line 2 paragraph line 3

* item 1
* Item 2
- Item 3
- Item 4
+ item 5
+ item 5

Generated HTML code is

<ul>
    <li>item 1</li>
    <li>Item 2</li>
</ul>
<ul>
    <li>Item 3</li>
    <li>Item 4</li>
</ul>
<ul>
    <li>Item 5</li>
    <li>Item 6</li>
</ul>

On a browser, you can see the list as

  • item 1

  • Item 2

  • Item 3

  • Item 4

  • item 5

  • item 5