Home > Article > Web Front-end > How to use html p tag
The p tag of
html is used to define a paragraph and will automatically create some whitespace before and after it; the browser will automatically add these spaces, or they can also be specified in the style sheet.
html How to use p tag?
Tags 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>
Output:
The above is the detailed content of How to use html p tag. For more information, please follow other related articles on the PHP Chinese website!