Home >Web Front-end >HTML Tutorial >How is a paragraph defined in html?

How is a paragraph defined in html?

王林
王林Original
2021-02-24 14:35:534117browse

Paragraphs in html are defined through the p tag, such as [

This is a paragraph.

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

How is a paragraph defined in html?

The operating environment of this article: windows10 system, html 5, thinkpad t480 computer.

p tag introduction:

Tag definition paragraph.

The element will automatically create some white space before and after it. The browser will automatically add these spaces, of course we can also specify them in the style sheet.

Example:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文网</title>
</head>
<body>

<p>这是一个段落。</p>
<p>这是一个段落。</p>
<p>这是一个段落。</p>

</body>
</html>

Run result:

How is a paragraph defined in html?

##Recommended learning:

html tutorial

The above is the detailed content of How is a paragraph defined in html?. 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