Horje
How to display HTML Paragraphs | HTML Paragraphs Code
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



Read Full::
HTML Paragraphs Code
Category:
HTML Code
Sub Category:
HTML Paragraphs Code
Uploaded:
8 months ago
Uploaded by:
Admin
Views:
87

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

Single Articles
Sample of displaying HTML Paragraphs
Full Example of displaying HTML Paragraphs

Share on: