Home > Web Front-end > Front-end Q&A > How to make a paragraph empty in css/html

How to make a paragraph empty in css/html

醉折花枝作酒筹
Release: 2023-01-05 16:12:36
Original
5067 people have browsed it
How to leave a line blank in a paragraph: 1. Use the p tag to leave a blank line. You only need to wrap the paragraph text with a p tag. The syntax is "

paragraph content

"; 2. Use brLine break is a blank line. Just enter "
" after the text that needs to be broken.

How to make a paragraph empty in css/html

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

1. Use the p paragraph tag as a blank line

p syntax

<p>第一段</p>
Copy after login

p is a paragraph tag. Use

to end the article paragraph and use

. In this way, the two paragraphs p and p are blank lines.

Example:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>document</title>
  </head>
  <style>
 
  </style>
  <body>
    <p>这是一个段落</p>
    <p>这是另一个段落</p>
  </body>
</html>
Copy after login

Effect:

How to make a paragraph empty in css/html

##2. Use the br line break tag to empty the line

Everyone The sub's
is an independent tag. Using two br line break tags can achieve the effect of line break and empty line.

Example:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>document</title>
  </head>
  <style></style>
  <body>
    这是一个段落<br><br>
    这是另一个段落
  </body>
</html>
Copy after login
Effect:


How to make a paragraph empty in css/html

Recommended learning:

css video tutorial

The above is the detailed content of How to make a paragraph empty in css/html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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