Home  >  Article  >  Web Front-end  >  What does css p mean?

What does css p mean?

藏色散人
藏色散人Original
2021-11-17 15:31:024417browse

The p in css refers to the HTML e388a4556c0f65e1904146cc1a846bee tag, which is used to define paragraphs; the p element will automatically create some white space before and after it, and the browser will automatically add these spaces. We can also specify it in the style sheet.

What does css p mean?

The operating environment of this article: Windows 7 system, CSS3 version, Dell G3 computer.

css What does p mean?

The p in css refers to the HTML e388a4556c0f65e1904146cc1a846bee tag, and the

e388a4556c0f65e1904146cc1a846bee tag defines a paragraph.

p elements automatically create some whitespace before and after them. The browser adds these spaces automatically, or you can specify them in your stylesheet.

Differences between HTML and XHTML:

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.

Optional attributes

Attributes

align
left
right
center
justify

Deprecated. Please replace it with a style.

Specifies the alignment of text in a paragraph.

Example

The following code marks a paragraph:

<p>This is some text in a very short paragraph</p>

Recommended study: "css video tutorial"

The above is the detailed content of What does css p mean?. 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:what is title tag in htmlNext article:what is title tag in html