" or "
"."/> " or "
".">

Home  >  Article  >  Web Front-end  >  What elements can insert line breaks in html5?

What elements can insert line breaks in html5?

WBOY
WBOYOriginal
2022-01-05 14:30:534319browse

In HTML5, you can use the br tag element to insert a line break. The function of this tag is to insert a simple line break. It is an empty tag, which means it has no end tag. The syntax is "
” or “
”.

What elements can insert line breaks in html5?

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

What elements in html5 can insert a line break


tag inserts a simple line break.


tag is an empty tag, meaning it has no closing tag.

Please use the
tag to enter blank lines instead of dividing paragraphs.

The
tag is very useful when writing address information or poetry.

The example is as follows:

<html>
<head> 
<meta charset="utf-8"> 
<title>123</title> 
</head>
<body>
<p>
使用 br 元素<br>在文本中<br>换行。
</p>
</body>
</html>

Output result:

What elements can insert line breaks in html5?

Recommended tutorial: "html video tutorial

The above is the detailed content of What elements can insert line breaks in html5?. 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