Latest web development tutorials

HTML <p> tag

Examples

The following code marking a paragraph:

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

try it"
(In the bottom of the page, you can find more examples)

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Most browsers support <p> tag.


Tag definitions and instructions

<P> tag defines a paragraph.

<P> element will automatically create some space before or after. The browser will automatically add these spaces, you can also specify in the stylesheet.


Differences in the HTML 4.01 and HTML5

align attribute in HTML 4.01 tags obsolete, HTML5 does not support this property.


Attributes

属性 描述
align left
right
center
justify
HTML5不支持。 HTML 4.01已废弃。 不赞成使用。请使用样式取代它。 规定段落中文本的对齐方式。


Global Properties

<p> tag supports the global attributes, view complete the property sheet HTML Global Attributes .


Event Properties

<p> tag supports all HTML event attributes .


related articles

HTML Tutorial: HTML paragraph