How to add paragraphs and line breaks
Use paragraphs for prose
Each distinct thought belongs in a p element. Browsers collapse repeated whitespace in normal HTML.
<p>HTML describes the meaning of content.</p>
<p>CSS controls how that content looks.</p>
Use line breaks sparingly
A br is appropriate where the line ending is part of the content, such as an address or poem—not for page spacing.
<address>
10 Web Street<br>
Nairobi, Kenya
</address>
Add meaningful emphasis
<p><strong>Warning:</strong> Save your work first.</p>
<p>You <em>must</em> include a closing tag here.</p>
Keep text readable
- Use CSS margins instead of empty paragraphs or repeated
brtags - Use
strongfor importance andemfor stress - Write short paragraphs and descriptive headings
- Check text at narrow widths and increased browser zoom