Chapter 4: Paragraphs
| Tag | Meaning |
|---|---|
| <p> | Defines a paragraph |
| <br> | Inserts a single line break |
| <pre> | Defines pre-formatted text |
Section 4.1: HTML Paragraphs
The HTML <p> element defines a paragraph:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
Display
- You cannot be sure how HTML will be displayed on different screen sizes or window resizes.
- With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.
- The browser will remove any extra spaces and extra lines when the page is displayed.
For example:
<p>This is another paragraph, extra spaces will be removed by browsers</p>