" 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
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.
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:
##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!