WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML <br> Tag


Example

The following code marks a newline:

This text contains<br>a line break.
Try it yourself »

Definition and Usage

<br>The label inserts a simple newline character.

<br> The tag is an empty tag, meaning it has no end tag.


Browser Support

Element
<br> Yes Yes Yes Yes Yes Yes


Tips and comments

Tip: When writing address information or writing poems<br>Tags are very useful.

Note: Please use<br> Tags to enter blank lines instead of splitting paragraphs.


Differences between HTML 4.01 and HTML5

None.


Differences between HTML and XHTML

In HTML,<br> The tag has no end tag.

In XHTML,<br> Tags must be properly closed, like this :<br /> 。