Home > Article > Web Front-end > What does css p mean?
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.
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!