What elements can insert line breaks in html5?

WBOY
Release: 2022-01-05 14:30:53
Original
4307 people have browsed it

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

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!