HTML <p> Tag
In this tutorial, we will learn about p tag in HTML with the help of examples.
<p> Tag
P tag <p> is used to define a paragraph.
Note : The <p> tag is used to put a single line break before and after each <p> tag.
Syntax
<p>.........</p>
Example
<!DOCTYPE html>
<html>
<head>
<title>P Tag</title>
</head>
<body>
<p>This is the example of paragraph tag.</p>
</body>
</html>
Output
This is the example of paragraph tag.
Specific Attribute
Attribute | Value | Description |
---|---|---|
align | left right center justify |
It specifies text alignment within a paragraph |
Global Attribute
P Tag support all the global attributes of HTML.
Event Attribute
P Tag support all the event attributes of HTML.
Next Tutorial
We hope that this tutorial helped you develop better understanding of the concept of <p> tag in HTML.
Keep Learning : )
In the next tutorial, you'll learn about HTML <param>
Tag.