Home > Web Front-end > HTML Tutorial > What is br in html

What is br in html

青灯夜游
Release: 2023-01-03 09:24:03
Original
27247 people have browsed it

br is a line break tag in HTML, which is used to insert a simple line break in the HTML document; where manual line breaks are required, add "
" to achieve content line breaks. The "
" tag is an empty tag, meaning it has no closing tag.

What is br in html

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

HTML
tag


is a line break tag in HTML, which can insert a simple line break in the HTML document. The


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

Example:

<!DOCTYPE html>
<html>
 <head>
    <meta charset="utf-8">
    <title>HTML br标签</title>  
 </head>
 <body>
    <p>使用 br 元素<br>在文本中<br>换行。</p>
 </body>
</html>
Copy after login

Rendering:

What is br in html

##For more programming-related knowledge, please visit:

Introduction to Programming ! !

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