Home > Web Front-end > HTML Tutorial > What element is the p tag?

What element is the p tag?

云罗郡主
Release: 2019-02-16 11:33:58
Original
17327 people have browsed it

What element is the p tag?

P paragraph, it is a block element, mainly used to define paragraphs. It appears in pairs in web pages, starting with

. End with

. The

element will automatically leave some space before and after it. Of course, you can also specify the space size in the style sheet.

Function: Define paragraphs.

Note: The p 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.

Note: In HTML 4.01, all rendering attributes of the p element are deprecated. In XHTML 1.0 Strict DTD, all rendering attributes of the p element are not supported.

html p tag example

<html>
<body>
<p>这是段落。</p>
<p>这是段落。</p>
<p>这是段落。</p>
<p>段落元素由 p 标签定义。</p> 
</body>
</html>
Copy after login



The above is the detailed content of What element is the p tag?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template