This is an important message requiring you to make a choice if you're based in the EU.

HTML <br> Tag

The <br> tag defines a line break. Unlike the <p> tag that defines the paragraph, an empty indent is not added before the line.


The <br> tag is empty, which means that the closing tag isn’t required. But in XHTML the (<br>) tag must be closed (<br/>).

Don’t use the <br> tag instead of the <p> tag to divide the text into paragraphs.


<!DOCTYPE html>
    <title>Title of the document</title>
    <h1>Example of the &lt;br&gt; tag usage.</h1>
    <p> Inside the paragraph, we can put the tag &lt;br /&gt;, <br /> to transfer a part of the text to another line if necessary.</p>



Attributes Value Description
clear Specifies how to process the next line if the text wraps around the floating element.
Not used in HTML5.
all Reverses the flow around the element from the right and left edges at the same time.
left Reverses the flow from the left side of the element placed after the <br> tag.
right Reverses the flow from the right side.
none Cancels the action of an attribute.

The <br> tag supports the Global Attributes and the Event Attributes.

Browser support

Do you find this helpful?

Related articles