Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

What is paragraph <p> tag in HTML explain with example?

For general web development questions using HTML and CSS.
Post Reply
Site Admin
Posts: 45

What is paragraph <p> tag in HTML explain with example?

Post by admin » Sat Oct 19, 2019 7:35 pm

Paragraphs are the most basic HTML element. This topic explains and demonstrates the usage of the paragraph
element in HTML.
<p> Defines a paragraph
<br> Inserts a single line break
<pre> Defines pre-formatted text

HTML Paragraphs
The HTML <p> element defines a paragraph:

Code: Select all

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results. With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.
The browser will remove any extra spaces and extra lines when the page is displayed:

Code: Select all

 <p>This is another paragraph, extra spaces will be removed by browsers</p>

Post Reply