Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <p> tag


May 04, 2021 HTML Reference Manual


Table of contents


HTML

The label represents a paragraph of text, which is usually represented in visual media as a block of text, a block-level element.

The following code marks a paragraph:

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

Try it out . . .
(At the bottom of the page, you can find more instances)

Browser support

HTML <p> tag HTML <p> tag HTML <p> tag HTML <p> tag HTML <p> tag

Most browsers currently support the hashtag.


Label definition and instructions for use

The label defines the paragraph.

The element automatically creates some white space before and after it. The browser automatically adds this space, which you can also specify in the style sheet.

Note: Labels and labels have a new line, the difference is that the label is a large line change (segmentation), and the label is a small liner.


The difference between HTML 4.01 and HTML5

The align property of the label in HTML 4.01 is obsolete and is not supported by HTML5.


Property

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


Global properties

The label supports global properties and views the full property sheet HTML global properties.


The event property

The label supports all HTML event properties.


Related articles

HTML tutorial: HTML paragraphs


An example of a label

Line change

Use line new lines in HTML documents.

A Tang poem in HTML code

When the browser displays HTML, it omits extra blank characters (spaces, carriage returns, etc.) from the source code.