Basic Syntax / Line Breaks

Line Breaks

Understand line break rules in Markdown and how to create line breaks in different scenarios.

Basic Rules

Line breaks in Markdown require special attention:

  • Add two spaces at the end of a line, then press Enter to create a line break
  • Use the <br> HTML tag to create a line break
  • Pressing Enter directly won't create a line break in most Markdown processors

Examples

Using two spaces for line break:

First line of text[space][space]
Second line of text

Using HTML tag:

First line of text<br>
Second line of text

Best Practices

  • Two spaces + Enter is the most common way
  • Use <br> when you need explicit line breaks
  • Leave blank lines between paragraphs for clearer structure

Comments

Comments are currently unavailable.

Enable GitHub Discussions for this repository and complete the giscus configuration to turn comments on.