<br>
HTML <br> Tag
Instance
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> </head> <body> <p> 使用br元素<br>在文本中<br>换行。 </p> </body> </html>
Run Example»
Click the "Run Instance" button to view the online instance
Browser support
All major browsers support< br> tag.
Tag definition and usage instructions
<br> tag inserts a simple newline character.
<br> tag is an empty tag, meaning it has no closing tag.
Tips and Notes
Tips: The <br> tag is very useful when writing address information or poetry.
Note: Please use the <br> tag to enter blank lines instead of dividing paragraphs.
Differences between HTML 4.01 and HTML5
None.
Differences between HTML and XHTML
In HTML, the <br> tag does not have a closing tag.
In XHTML, the <br> tag must be closed correctly, such as this: <br /> .
Global attributes
<br> tag supports HTML global attributes.
Event attributes
<br> tag supports HTML event attributes.
Related Articles
HTML Tutorial: HTML Paragraph