What does css p mean?

藏色散人
Release: 2021-11-17 15:31:02
Original
4430 people have browsed it

The p in css refers to the HTML

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

tag, and the

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
Copy after login

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>
Copy after login

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!

Related labels:
css p
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!