Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

HTML Paragraph: <p> defines the paragraph in HTML

Example:

<p>This is first paragraph.</p>
<p>This is second paragraph.</p>
<p>This is third paragraph.</p>

Display in HTML: you can not change how HTML will display the content by using spaces because the content will adjust as visible browser space on the screen if a paragraph is 10 lines when the browser is small it may display 5 lines when you enlarge browser.

Example:

<p>
In this paragraph 
lines are written
in lot of lines but
the browser ignores it.
</p>

<p>
In this paragraph
lines, we    have   used
unnecessary   spaces    but
the browser ignores it.
</p>

Break in HTML: <br> tag is used to break the lines in HTML. It is an empty tag and has no end tag.

Example:

<p> In this paragraph <br>
lines are written in a lot of lines<br>
 but the browser ignores it. </p>

Pre in HTML: <pre> tag defines the preformatted text, in this tag text is displayed with fixed with font and it preserves both spaces and line breaks.

<pre>
Welcome to learnsimpli.

Learnsimpli is the free online tutorial website.

you can everything in free.

It is free and it will be free.
</pre>