×

html · level 1 · unit 1 · lesson 4

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

<p> wraps each of ordinary text.

A paragraph is a block of ordinary text, one or more sentences about one thing. Wrap each one in <p> and </p>. The browser leaves a small gap between paragraphs.

Here is a surprise. The browser squashes : every run of spaces, tabs and new lines in your code shrinks to one single space.

So pressing Enter in your code does not start a new line on the page. To start a new paragraph, use a new <p>.

<h1>My dog Biscuit</h1>
<p>Biscuit is three years old.</p>
<p>He loves     long walks
and stealing socks.</p>

Press show my page to see it here.

Look at the last paragraph: on the page, the extra spaces and the new line vanish.