HTML p Tag Tutorial

In this section, we will learn what HTML <p> element is and how to use it.

What is <p> Tag in HTML? (HTML Tag for Paragraph)

HTML <p> element stands for paragraph and we use it when we want to add a paragraph in an HTML document.

Pretty much in every HTML document on a webpage, there is a paragraph presenting a content. That content might be:

  • your daily life
  • a joke
  • a product
  • advice to a particular group of people

Etc.

The moment you think about adding a paragraph to a webpage, the closest html element that in 90% of time you need to use is the <p> element.

HTML <p> Tag Syntax:

<p> Pragraph…. </p>

HTML <p> Tag Values

The value we set for the <p> element is the content of the paragraph we want to add to an HTML document.

Example: paragraph tag HTML

See the Pen paragraph tag HTML by Omid Dehghan (@odehghan) on CodePen.

You should know that every time we use a <p> element in an HTML document, the content will appear in a new line. This is because <p> element by default is a block-level element.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies