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 | |||||
12 | 1 | 1 | 15 | 4 |
Tablets / Mobile | |||||
18 | 4 | 14 | 3.2 | 1 | 4.4 |
Last updated by CSSPortal on: 30th September 2023