", which can insert a line break character at the specified position; the "
" tag will tell the browser to immediately stop the current text flow and insert it to the left of the next line, or to the left. Aligned inline graphics or tables begin to the right of the output text flow."/> ", which can insert a line break character at the specified position; the "
" tag will tell the browser to immediately stop the current text flow and insert it to the left of the next line, or to the left. Aligned inline graphics or tables begin to the right of the output text flow.">

Home  >  Article  >  Web Front-end  >  What is the line break tag in html?

What is the line break tag in html?

WBOY
WBOYOriginal
2021-11-25 12:13:1243326browse

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>

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!

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