Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <br> tags


May 04, 2021 HTML Reference Manual


Table of contents


HTML

The label is an empty label that inserts a simple line break.

The following code marks a new line:

<p>
使用 br 元素<br>在文本中<br>换行。
</p>


Try it out . . .

Browser support

HTML <br> tags HTML <br> tags HTML <br> tags HTML <br> tags HTML <br> tags

All major browsers support the label.


Label definition and instructions for use

The label inserts a simple line break.

The label is an empty label, which means that it does not end the label.

The label simply starts a new line, and when the browser encounters the label, it usually inserts some vertical spacing between adjacent paragraphs.


Tips and comments

Tip: Labels are useful when writing address information or poetry.

Note: Instead of splitting a paragraph, enter an empty line using the hashtag.


The difference between HTML 4.01 and HTML5

No.


The difference between HTML and XHTML

In HTML, the label does not have an end label.

In XHTML, the label must be turned off correctly, for example:


Global properties

Labels support the global properties of HTML.


The event property

The tag supports the event properties of HTML.


Related articles

HTML tutorial: HTML paragraphs