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

Skip to content HTML / Learn How Fonts And Web Typography Work In HTML: A Beginner's Guide / HTML P Element: Here's The Code To Identify Paragraph TextDisclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn moreElement ofLearn How Fonts And Web Typography Work In HTML: A Beginner's GuideWhat 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.DisplayinlineUsagetextual

Contents

  • 1 Code Example
  • 2 Basic Text Formatting
  • 3 Browser Support for p
  • 4 Attributes of p

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 BroadleyClaire 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

Attributes of p

Attribute nameValuesNotes
clearWas used to force a paragraph to appear below sibling elements rather than next to sibling elements within a parent element.

Post navigation

How To Use In HTML<td nowrap>

Search HTML.com

Search for:

Most Popular

  • <var> HTML Tag651 views
  • What Is Doxing? (And Why Is It So Scary?): An Infographic67 views
  • <meter> HTML Tag65 views
  • The Web Worker's Stress Busting Toolbox: 50 Tips to Improve Your Life65 views
  • <rp> HTML Tag29 views
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok

Tag » What Is P In Html