<p>


HTML <p> Tag

Instance

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文网(php.cn)</title>
</head>
<body>

<p>这是一个段落。</p>
<p>这是一个段落。</p>
<p>这是一个段落。</p>

</body>
</html>

Run Example»

Click the "Run Instance" button to view the online instance


Browser support

1000.png

Currently most browsers support < p>label.


Tag definition and usage instructions

<p> Tag definition paragraph.

<p>The element will automatically create some white space before and after it. The browser adds these spaces automatically, or you can specify them in your stylesheet.


Differences between HTML 4.01 and HTML5

The align attribute of the tag in HTML 4.01 has been deprecated and HTML5 does not support this attribute.


Properties

PropertiesValueDescription
alignleft
right
center
Justify
HTML5 is not supported. HTML 4.01 is deprecated. Deprecated. Please replace it with a style. Specifies the alignment of text within a paragraph.


Global attributes

<p> tag supports global attributes, see the complete attribute table HTML global attributes.


Event attributes

<p> tag supports all HTML event attributes.


Related Articles

HTML Tutorial: HTML Paragraph