Loading Page Content...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Preparing courses, live labs, and learning resources.सामग्री लोड हो रही है, कृपया प्रतीक्षा करें...
Controlling whitespace, paragraph divisions, and line breaks in Markdown behaves differently from traditional word processors like Microsoft Word. Understanding these rules avoids the common beginner frustration of text running together onto a single line.
In Markdown, a paragraph is simply one or more consecutive lines of text. To start a new paragraph, you must leave one or more blank lines between the text blocks:
If you do not leave a blank line and simply press Enter once:
Rendered Output: Both lines will merge together into a single continuous sentence: "Line one Line two".
<br>)Sometimes you want a line break without creating a whole new paragraph (for example, in poetry, street addresses, or song lyrics).
There are two primary ways to force a line break in Markdown:
Add two or more spaces at the very end of the line, then press Enter:
(The dots ·· represent two spaces).
<br> Tag (Universal & Explicit)Because trailing spaces are invisible in text editors and often get stripped by code linters, you can use the HTML5 <br /> tag directly:
A horizontal rule creates a visual dividing line (<hr /> in HTML) that separates major themes or sections in a document.
You can create a horizontal rule by placing *three or more hyphens (-), asterisks (`), or underscores (_`)** on a line by themselves:
--- so the parser does not accidentally interpret it as an underline for the preceding text!Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| Headings & Document Hierarchy (ATX vs Setext) | Text Emphasis: Bold, Italic, Strikethrough & Highlights |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.