" can achieve content line breaks. The "
" tag is an empty tag, meaning it has no closing tag."/> " can achieve content line breaks. The "
" tag is an empty tag, meaning it has no closing tag.">

Home  >  Article  >  Web Front-end  >  What is br in html

What is br in html

青灯夜游
青灯夜游Original
2021-02-20 14:32:5427211browse

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>

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!

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