Home >Web Front-end >Front-end Q&A >How to use html p tag

How to use html p tag

青灯夜游
青灯夜游Original
2019-05-26 18:04:125284browse

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.

How to use html p tag

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:

How to use html p tag

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!

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
Previous article:How to use html title tagNext article:How to use html title tag