HTML <br> Tag

Description

The <br> HTML tag, short for "line break," is a self-closing element used to create a single, forced line break within the content of a web page. When inserted in the HTML code, it tells the browser to start a new line immediately, moving any content following it to the next line. This tag is often used to add spacing between lines of text or to format addresses, poems, or other content where line breaks are crucial. It does not require a closing tag because it doesn't enclose any content; it simply provides a way to control the layout and presentation of text within a webpage.

Properties

Permitted Parents
Any element that accepts phrasing content
Content
None. It is an empty element.
Start/End Tags
Start tag: required, End tag: forbidden

Example

This text contains<br>a line break.

Attributes

None

Global Attributes

The <br> tag also supports the Global Attributes in HTML5

Event Attributes

The <br> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <br> tag.

Desktop
Edge Chrome Firefox Opera Safari
1211154
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
184143.214.4

Last updated by CSSPortal on: 30th September 2023