Horje
How to display HTML Paragraphs

You cannot be sure how HTML will be displayed.

Large or small screens, and resized windows will create different results.

With HTML, you cannot change the display by adding extra spaces or extra lines in your HTML code.

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


Sample of displaying HTML Paragraphs

<p>
This paragraph
contains a lot of lines
in the source code,
but the browser 
ignores it.
</p>

<p>
This paragraph
contains      a lot of spaces
in the source     code,
but the    browser 
ignores it.
</p>

<p>
The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in this paragraph will change.
</p>

Full Example of displaying HTML Paragraphs

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p>
This paragraph
contains a lot of lines
in the source code,
but the browser 
ignores it.
</p>

<p>
This paragraph
contains      a lot of spaces
in the source     code,
but the    browser 
ignores it.
</p>

<p>
The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in this paragraph will change.
</p>

</body>
</html>

Output should be:

Full Example of displaying HTML Paragraphs





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 displaying HTML ParagraphsHTML Paragraphs
Full Example of displaying HTML ParagraphsHTML Paragraphs

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



Share on: