HTML Paragraphs

The HTML paragraph tag is used to define a paragraph within a webpage. The browser automatically adds some white space or margin before and after a paragraph.

Input:

<body>
	<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p>
	<p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</p>
</body>

Output:

1. <Pre> Tag

If we try to add some extra space within paragraph content, the browser will neglect all the spaces. To overcome this issue, we have <pre> tag which displays the same content with white space as we typed in between paragraphs. Or we can also use <br/> tag to give break to any paragraph.

Input:

<body>
	
	<pre>Lorem Ipsum is simply dummy text of the
 
         printing and typesetting industry.
        Lorem Ipsum has been the industry's  standard dummy
          ever since the 1500s</pre>
</body>

Output:

Supporting Browsers

ElementChromeIEFirefoxOperaSafari
<p>YesYesYesYesYes