tag element defines a paragraph Example:
This is a first paragraph.
This is a second paragraph.
In paragraph while preparing withtag need to observe some of rules this tag in HTML will follows In any additional spaces and lines if given between sentences it won’t consider and you can not sure that how it will displays, if you need to custom by using CSS than it will control on your hands. Example: will explain clearly in detailed
here paragraph contains a lot of lines and words in the source code, it may ignore it
This text contains a lot of spaces in the source code, here the browser ignores it.
Try to practice with the above code example and you will know clearly.This is a first paragraph.
This is a second paragraph. It will work some browsers, but it is not good practice to write HTML code like this.
using paragraph tag if we may require
any line break and next line starts from beginning
will use to break line in HTML.
Example:
This is
a text paragraph
with line break
This tag defines the preformatted text, with in this tag element text will display a fixed width font, and it preserves both spaces and line breaks:
This is the first line. This is second line. This is third line without br tag Really its printing text shown below