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
. Theelement 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>
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!