<br>
HTML
(Line Break) Tag
Example
<p>This text will be broken here <br>and continued on a new line.</p>
Meaning
The <br> HTML element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
Notes:
- This is an empty element. A closing tag is illegal under all HTML specifications. For XHTML compatibility, a closing slash is required
<br />. - The CSS property clear provides the same functionality as the clear attribute.
- Do not use
<br>to create margins between paragraphs; wrap them in<p>elements and use the CSS margin property to control their size.
Version: HTML 2, 3.2, 4, 4.01, 5
Standard Syntax
HTML:<br>, XHTML:<br />
Advertisement
Deprecated Attributes
| Attribute | Value | Description |
|---|---|---|
| clear | none left right all |
This attribute forces the insertion of vertical space so that the tagged text can be positioned with respect to images. Use CSS clear property. |
Global Attributes
<br> element also supports the Global Attributes in HTML.
Event Attributes
<br> element also supports the Event Attributes in HTML.
By Default CSS Value(s)
None