Keep all your lines and spaces


HTML ignores words on different lines. Try this to see:

  1. write this in the code:
    line 1 some space
    line 2         more space
    line 3                lots of space
  2. save the code and open the page in a browser
    you'll see this:
    line 1 some space line 2 more space line 3 lots of space
we're going to use the pre tag (<pre>) to keep the lines as you typed them in the code
  1. open the code and write this round it:
    <pre>
    line 1 some space
    line 2         more space
    line 3                lots of space
    <\pre>
  2. save the code and open the page in a browser
    you'll see this:
    line 1 some space
    line 2         more space
    line 3                lots of space

more tutorials to try


you might like to try these tutorials too:

Go Berserk Book

Buy Now to buy for
£11.99 US$17.99 €13.99 (not incl. P&P)
for 1 or 2 books
Buy more and save!
Email sales@go-berserk.com
for 3 books or more.



Go Berserk CSS Book

Buy Now to buy for a special price of
£8.99 US$13.99 €11.99 (not incl. P&P)
for 1 or 2 books
Buy more and save!
Email sales@go-berserk.com
for 3 books or more.