Home >Web Front-end >HTML Tutorial >How is a paragraph defined in html?
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.
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:
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!