LESSON 2: Dissecting a simple HTML file.

<HTML>
<HEAD>
  <TITLE>A simple HTML file</TITLE>
</HEAD>

<BODY BGCOLOR="Black" TEXT="Aqua">

<P>
This is a paragraph. Each new paragraph you make will drop
down a couple lines before starting.

<P>
Here's another paragraph. Save this as an HTML file and load it
in Netscape to see the spacing. Or you could click on the link
below to see it.

<br>The br element is a line-break. It will only drop down
one line, unlike the paragraph.
You can replace this text with whatever you want it to say,
BUT there is ALWAYS exceptions!

</BODY>
</HTML>

Click here to see the effect of the above file!

Notice how it doesn't start a new line wherever the code does. Thus, the following code:

This
will all
be on
one line!

would look like this in your browser:

This will all be on one line!


You could also do something like this:

<br>This<br>will be<br>on separate<br>lines!

which would look like this in your browser:

This
will be
on separate
lines!



You have now learned enough to make a really simple HTML file that would only display plain text on the screen.
Forward to Lesson 3: "Prettier" text
Back to Lesson 1: The VERY Beginning
Back to the Contents

E-mail me.