The HTML <br> element inserts a line break within text. It is useful where line breaks are part of the content, such as addresses or poetry. Do not use repeated <br> tags to create layout spacing.
<address>10 Lake Road<br>Hyderabad<br>India</address>
<br> has no closing tag. In HTML, write <br>; the slash form <br /> is also parsed but is not required in HTML syntax.
.section { margin-bottom: 2rem; }
Ordinary source-code line breaks are usually collapsed like other whitespace. Use <pre> when whitespace itself must be preserved.
No. BR is a void element.
No. Use CSS margins, padding or gap for layout spacing.
When the line break is part of the content, such as an address or poem.
No. Normal whitespace is generally collapsed.
Browsers will render them, but CSS is the better tool for visual spacing.
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.