Lesson: 7 line breaks


pic1j

I think we’ll continue by learning something about the way a browser works.

First an example…

 
Something really cool 
like an icecube!
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??

<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??



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??

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s