HTML Paragraphs

Paragraph always starts on a new line.


Adding lines or spaces in your code will not change the outcome of your displayed web.

e.g.

<p>
This paragraph
contains a lot of lines
in the source code,
but the browser
ignores it.
</p>

<p>
This paragraph
contains         a lot of spaces
in the source         code,
but the        browser
ignores it.
</p>


Horizontal Rule

<hr> element is used to provide a break in a HTML page.

  • separates content or defines a change in a HTML page.

  • type of empty tag.


Line Breaks

<br> element defines a break.


<pre> element defines preformatted text.

  • Content is displayed in a fixed-width font (usually courier), and preserves both spaces and line breaks.