The Poem Problem and Line Breaks

Estimated reading: 1 minute 40 views

This poem will display in a single line:

<p>
 My Bonnie lies over the ocean.
 My Bonnie lies over the sea.
 My Bonnie lies over the ocean.
 Oh, bring back my Bonnie to me.
</p>

The browser will remove any
extra spaces and extra lines
when the page is displayed

The <br> element defines a line break without starting a new paragraph.

<p>
 My Bonnie lies over the ocean. <br>
 My Bonnie lies over the sea. <br>
 My Bonnie lies over the ocean. <br>
 Oh, bring back my Bonnie to me.
</p>
Share this Doc

The Poem Problem and Line Breaks

Or copy link