" 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."/> " 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.">

Home  >  Article  >  Web Front-end  >  What is the abbreviation of br tag in html5?

What is the abbreviation of br tag in html5?

青灯夜游
青灯夜游Original
2021-12-17 12:14:039246browse

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:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>html<br>标签换行符详细介绍</title>
	</head>
	<body bgcolor="burlywood">
		<p>我是一个段落。<br>我是一个段落。<br />我是一个段落。</p>
	</body>
</html>

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!

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