Topic: HTML Basics

Paragraph element – HTML

Summary

To create a paragraph in HTML, use the p element:

<p>Paragraph text.</p>

To see what this element looks like in the browser, view the Demo section below.

Details

The paragraph element is used to create paragraphs in HTML.

When rendered in the browser, each paragraph element will start on its own line.

<p>This paragraph will start on one line in the browser.</p>

<p>This paragraph will start on another line in the browser.</p>

Demo

Exercises

Using your text editor or CodePen, try creating your own paragraph elements. Try creating more than paragraph element to show that each one will start on its own line. Try experimenting with different lengths of text inside each paragraph element to see how the text wraps around the page automatically.

References

The Paragraph element on MDN