br
Forces a new line inside the same paragraph or text block. It has no closing tag.
Learn HTML Line Breaks as a practical HTML text lesson with syntax, examples, common mistakes, accessibility notes and a live code lab.
HTML text basics
The br element creates a line break. It is useful when the line break is part of the content itself, such as an address, a short poem, song-like text or a compact contact block.
A line break is not a layout system. If you use five br elements to create vertical space, the HTML is doing CSS work and the page becomes harder to maintain.
The wbr element is different. It tells the browser where a long word, URL or token may break if the line becomes too narrow.
Forces a new line inside the same paragraph or text block. It has no closing tag.
Marks an optional break opportunity inside long text. The browser uses it only when needed.
Line breaks can be useful when every line is part of one address block.
Use CSS margin, padding or layout properties for space between sections.
Syntax and meaning
A line break says: continue the same piece of text, but start the next part on a new line.
<p> Full Stack Masterclass<br> Practical coding lessons<br> Utrecht, The Netherlands </p> <p> Long token: fullstack<wbr>masterclass<wbr>html<wbr>lesson </p>
<h1>HTML Course</h1> <br><br><br> <section> <h2>Next section</h2> <p>This space should be CSS margin, not repeated breaks.</p> </section>
Practical rules
These rules are the part that saves time in real projects. If the HTML meaning is clean, CSS, JavaScript, accessibility checks and search optimization become easier to reason about.
Addresses, poetry and compact contact details are normal use cases.
Repeated br tags usually mean CSS spacing is missing.
If the meaning changes, use a new p element instead of br.
wbr helps responsive layouts survive long URLs, hashes, IDs or filenames.
In HTML, br is a void element. Write <br>, not <br></br>.
Line breaks that look good on desktop can become awkward on mobile.
Production thinking
Text markup matters because browsers and assistive technology do not only see letters. They also read structure, emphasis, quotes, code and relationships between pieces of text.
A few meaningful line breaks are fine. Repeated line breaks can create noisy or confusing reading experiences in assistive technology.
If editors paste content with many manual breaks, normalize it into paragraphs, lists or CSS spacing before publishing.
Line breaks do not create structure for search engines. Headings, paragraphs and lists are stronger signals.
Live code lab
Edit the HTML or CSS, then use Run to refresh the preview. The preview is isolated, so links and forms stay inside this practice area.
Mini assignment
Practice assignment
Try it yourself
Self-check
Do not only read this page. Answer these questions out loud or write the answers in your own notes. If one answer feels vague, revisit the examples before moving on.