Home > Web Front-end > Front-end Q&A > What is the line break tag in html?

What is the line break tag in html?

WBOY
Release: 2021-11-25 12:13:12
Original
43418 people have browsed it

The newline tag in HTML is: "
", which can insert a newline character at the specified position; the "
" tag will tell the browser to immediately stop the current text flow and Continue the output text flow starting to the left of the next line, or to the right of a left-justified inline graphic or table.

What is the line break tag in html?

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

What is the line break tag in html

The line break tag in html is "
".


inserts a simple newline character. The


tag is an empty tag (meaning it has no closing tag, so this is an error:
). In XHTML, place the closing tag within the opening tag, i.e.
.

Note that the
tag simply starts a new line, while the browser will usually insert some vertical spacing between adjacent paragraphs when it encounters the

tag.

Let’s look at the use of line break tags through examples. The examples are as follows:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    123123123123<br>132123123132123123<br>123132132132132
</body>
</html>
Copy after login

Output results:

What is the line break tag in html?

Recommended Tutorial: "html video tutorial"

The above is the detailed content of What is the line break tag in 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