![]() |
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: |
<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>
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>
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 displaying HTML Paragraphs | HTML Paragraphs |
Full Example of displaying HTML Paragraphs | HTML Paragraphs |
Read Full: | HTML Paragraphs |
Category: | Web Tutorial |
Sub Category: | HTML Paragraphs |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 213 |