Ignoring Empty Space

Almost all non-heading text will be placed within a paragraph element in a web document.

HTML
<p>This is a paragraph element.</p>


Compare this to Markdown:

markdown
This is a paragraph.

In markdown, a paragraph requires no extra markup to signify it as such. An empty line between text blocks signifies a new paragraph.

Empty Space

You’ll notice that when using Markdown, empty lines create paragraphs and provide padding between one paragraph and the next. This is not true of HTML.

By default, browsers will remove empty spaces from paragraph element blocks. This is true of spaces and extra empty lines. You need to be aware that you cannot change the output of your rendered HTML code by adding extra spaces or lines unless you code for them; simply pressing space bar or return won’t cut it.

The following will both display as single line paragraphs after being rendered.