Horje
What is the Poem Problem in HTML Paragraphs

This poem will display on a single line:


Sample of Poem Problem in HTML Paragraphs

<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>

Full Example of Poem Problem in HTML Paragraphs

This poem will display on a single line:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p>In HTML, spaces and new lines are ignored:</p>

<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>

</body>
</html>

Output should be:

Full Example of Poem Problem in HTML Paragraphs
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_poem





Related Articles
What is HTML Paragraphs HTML Paragraphs
How to display HTML Paragraphs HTML Paragraphs
How to create HTML Horizontal Rules HTML Paragraphs
How to create HTML Line Breaks HTML Paragraphs
What is the Poem Problem in HTML Paragraphs HTML Paragraphs
How to create <pre> Element in HTML Paragraphs HTML Paragraphs

Single Articles
Sample of Poem Problem in HTML ParagraphsHTML Paragraphs
Full Example of Poem Problem in HTML ParagraphsHTML Paragraphs

Read Full:
HTML Paragraphs
Category:
Web Tutorial
Sub Category:
HTML Paragraphs
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
160



Share on: