Paragraph Display
You can never be sure how your webpage will look on another screen. There are so many variations, such as large and small screens, resized windows, personalized font-size settings, PDAs, tablets, cellphones, etc. Each situation display different results of your webpage. If you are a good HTML writer, your webpages will look good everywhere!
Browsers do not see extra spaces or extra lines when displaying a webpage. Adding extra spaces and lines in your HTML file are for your benefit only, to make your HTML document look good to you, but browsers ignore them!
HTML file: |
Displayed by browser: |
<p> This paragraph contains a lot of line breaks in the source code, but the browser ignores it. </p>
|
This paragraph
contains a lot of line
breaks in the source code,
but the browser
ignores it.
|
<p> This paragraph contains a lot of spaces in the source
code, but the browser ignores
it. </p>
|
This paragraph
contains a lot of spaces
in the source code,
but the browser
ignores it.
|
<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>
|
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.
|