This poem will display on 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>
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>
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_poem
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 |
Sample of Poem Problem in HTML Paragraphs | HTML Paragraphs |
Full Example of Poem Problem in HTML Paragraphs | HTML Paragraphs |
Read Full: | HTML Paragraphs |
Category: | Web Tutorial |
Sub Category: | HTML Paragraphs |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 160 |