HTML <p></p> Tag With Example

HTML paragraph Definition:

  • The HTML <p> tag specifies the beginning of a paragraph.
  • It is a block-level element and can only contain inline elements.
  • You don't always need to use a closing HTML p tag. Another block-level element can close it.
  • HTML paragraph element supports all global attributes.

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.

<p></p> Example:

Result: