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

What element is the p tag?

云罗郡主
云罗郡主Original
2019-02-16 11:33:5817324browse

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 e388a4556c0f65e1904146cc1a846bee. End with 94b3e26ee717c64999d7867364b1b4a3. The e388a4556c0f65e1904146cc1a846bee 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>



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!

Statement:
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