How to create paragraph in HTML

What is HTML Paragraph?

In HTML, paragraph is used to define a paragraph of text. You can add text paragraph to your webpage using HTML paragraph element.

HTML <p> element is used to create a text paragraph in a webpage.

Example of Creating HTML Paragraph

Just place your text between <p> and </p> tags, a paragraph will be create with the text in your webpage.

In the following example "This is an example of HTML paragraph element" text is placed between the <p> and </p> tags to create a paragraph as shown in the following example:

Example of HTML Paragraph


Output of the above example

Example of Paragraph


This is an example of HTML paragraph element.


HTML paragraph element is multiline paragraph. Depending on your text length, it will automatically adjust the space and line to display multi-line paragraph where requires.

Remember, each paragraph element creates a new line and paragraph is displayed as block.

More Example of Paragraph


Output of the above example

Example of Paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla convallis, arcu et consequat condimentum, lectus augue varius quam, et varius ipsum ligula nec dui.

Live Code Playground

In the following HTML code editor, you can practice the above code by updating or adding new HTML code. Click on the 'Run Code' button to render the code; the rendered page will be displayed in the following HTML Code Output frame. Practice until you become comfortable and proficient with your code.

HTML logo HTML Online Editor
HTML Code Output