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

HTML5 <br /> tag


May 03, 2021 HTML5


Table of contents


For HTML5 and br?gt; tags are used to line up text in a document, refer to the following example:

The following code marks a new line:

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

Browser support

HTML5 <br /> tag HTML5 <br /> tag HTML5 <br /> tag HTML5 <br /> tag HTML5 <br /> tag

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.

Tip: Because the label is empty, it is not allowed to have a "lt;br/gt;... "Such a writing!


Tips and comments

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

Note: Instead of splitting paragraphs, enter empty lines using the .lt;br //gt; label.


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