Home  >  Article  >  Web Front-end  >  What element is css p

What element is css p

藏色散人
藏色散人Original
2023-02-01 10:38:512821browse

css p refers to the paragraph tag

, which is a block-level element, and the block-level element fills the entire line by default, and subsequent labels will be displayed below it, within the corresponding line The element is adaptive according to the width of the content; the

element will automatically create some white space before and after it, and the browser will automatically add this space.

What element is css p

The operating environment of this tutorial: Windows 10 system, CSS3 version, DELL G3 computer

What is the element of css p?

p is a paragraph tag, which usually contains text content. div, h1 or p elements are often called block-level elements. Block-level elements fill the entire line by default, and subsequent labels will be displayed below it. The corresponding inline elements are adaptive according to the content width.

That is,

The element following the block-level element will wrap to the next line, unless the style of the element is set to flow:left;

HTML

Tag

Tag defines a paragraph.

The 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.

Usage example:







这是一个段落。

这是一个段落。

这是一个段落。

The operation effect is as follows:

What element is css p

#

Label attribute:


What element is css p

Recommended study: "

css video tutorial"

The above is the detailed content of What element is css p. 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