" or "
"; the br tag is An empty tag (no element content), which also means that it has no closing tag, is also called a single tag."> What is the abbreviation of br tag in html5?-Front-end Q&A-php.cn

What is the abbreviation of br tag in html5?

青灯夜游
Release: 2021-12-17 12:14:03
Original
9058 people have browsed it

In HTML5, the br tag is the abbreviation of "barter rabbet", which means "line break" in Chinese. It is used to insert a line break character at a specified position. It is written as "
" or ""; The br tag is an empty tag (no element content), which also means that it has no closing tag, so it is also called a single tag.

What is the abbreviation of br tag in html5?

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

"br" is the abbreviation of "barter rabbet" in English, which means "line break". As a label in html, it also plays the role of line break.

In HTML, the
tag is used to insert a newline character, it is an empty tag (no element content), meaning it has no closing tag (so this is wrong:
), so it is also called a single label.


There are three ways to write tags without error, namely
, ,
. In xhtml, single tags like
need to use "/" to close themselves, such as:
, there is no such way of writing , but it is written like this in html No error will be reported. Although all three writing methods are acceptable, it is recommended to write
or
to be more rigorous.

If it is in xhtml, it must be written as
or
.

Note: The function of the
tag is to insert a newline character there, and the content after the tag will start on the next line.

Example:

    html<br>标签换行符详细介绍 

我是一个段落。
我是一个段落。
我是一个段落。

Copy after login

What is the abbreviation of br tag in html5?

Related recommendations: "html video tutorial"

The above is the detailed content of What is the abbreviation of br tag 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
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!