Lesson 7: line breaks
SITE MAP | by
I think we'll continue by learning something about the way a browser works.
First an example...
<body> Something really cool like an icecube! </body>

Something really cool like an icecube!
<body> Hey! What's going on here?? </body>

Hey! What's going on here??
The browser doesn't recognize formatting. Unless you tell it otherwise, it just displays the characters in a steady stream. If you want to start a new line you have to use a line break...
<body> Hey!<br> What's<br> going<br> on<br> here?? </body>

Hey!
What's
going
on
here??
What's
going
on
here??
<br> basically says - start a new line.
Can you use <br> to skip a line? Sure.
<body> Hey!<br> What's<br> going<br> <br> on<br> here?? </body>

Hey!
What's
going
on
here??
What's
going
on
here??
Skip lots of lines? You betcha.
<body> Hey!<br> What's<br> going<br> <br> <br> <br> <br> <br> <br> <br> on<br> here?? </body>

Hey!
What's
going
on
here??
What's
going
on
here??