In HTML <p> element defines paragraph and HTML documents are divided into paragraphs.
<p></p>
Browser automatically will add some space before and after paragraph.
<p> Content </p>
If you give extra space and new lines in paragraph it will appear as single space and single line break. This problem can be resolved by using preserve tag <pre></pre>
Preserve tag <pre></pre>
is explained in next chapter.
Open notepad or any other text editor, follow the following points.
I am paragraph
I am paragraph 2
save file with name task.html or task.htm and then open it using any browser and see results.
Do not use <br /> element for new line or break line, give new line by putting cursor between I am
and paragraph
and then press enter button and so on.