HTML P Element: Here's The Code To Identify Paragraph Text

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Element of
Learn How Fonts And Web Typography Work In HTML: A Beginner's Guide
What does HTML P Element: Here's The Code To Identify Paragraph Text do?
The <p> element is used to identify blocks of paragraph text. The closing <p> tag is optional and is implied by the opening tag of the next HTML element encountered in an HTML document after an opening <p> tag.
Display
inline
Usage
textual

Code Example

<p>Here's how to define a paragraph in HTML.</p>

Here's how to define a paragraph in HTML.

Basic Text Formatting

If you’re new to HTML, <p> is likely to be the first element that you encounter. It defines a paragraph of text.

The end of the paragraph is marked by a closing </p> tag. Technically this is optional, but it’s good practice to include the closing tag to ensure your document validates.

By default, most browsers place a line break and a blank line between paragraphs.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.

Browser Support for p

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll