HTML - <p> Tag


Advertisements


Description

The HTML <p> tag defines a paragraph of text.

Example

<!DOCTYPE html>
<html>

   <head>
      <title>HTML p Tag</title>
   </head>

   <body>
      <p>This paragraph is defined using the HTML p tag</p>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Specific Attributes

The HTML <p> tag also supports the following additional attributes −

Attribute Value Description
align left
right
center
justify
Specifies text alignment within a paragraph.

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements