.

Lesson 3 - Line Breaks, Paragraphs, and Alignment
How to position text on your page.

The default settings for text push all your words to the top left corner of the page, and all the sentences string together.

You can control the positioning of your text by adding some new tags.

Tags to end lines and add line spaces are:
the paragraph tag - <P>
the line break - <BR>
and to skip a line - &nbsp; (also <BR WP="BR1"><BR WP="BR2">)

To indent text in from the side of the screen, use <Blockquote>
Use <Center> to position objects and text in the center of the page.

3rd Assignment:
Use tags to create line breaks and place text on the page.

The <P> tag stands for paragraph. It can be closed at the end of the paragraph with a </P> tag, but doesn't need to be. This tag breaks the line and adds a line space.

If you do not want a line space, but want to end the line, use the <BR> tag. This tag is never "closed."

See some examples of spacing in Wendell's first web page:

<HTML>
<HEAD>
<META NAME="Author" CONTENT="Wendell A-9">
<TITLE>Wendell's First Web Page</TITLE>
</HEAD>
<BODY TEXT="#00ff33" BGCOLOR="#000000">
<Blockquote>
<P><font face="comic sans ms">Hello, this is my first web page.</P>
<P>The problem of the week is:<BR>
A blacksmith said he'd give a special rate for new horseshoes. He would charge 1 cent for the first nail, 2 cents for the next nail 4 cents for next nail etc. How much would it cost for one horse?</Font></P>
<BR WP="BR1"><BR WP="BR2">
<P><Center>Answer ?<BR><BR>
___________</Center></P>
</Blockquote>
</BODY>
</HTML>

Check it out. (Enlarge example page if you need to, to see spacing.)

Note: the "Center" direction can be placed inside the paragraph tag, like this: <P align="Center">. Within the <P> tag you can also align left (default) or right. Be sure to close the paragraph tag, </P>, when you do this.

Lesson Index | Webmaster Club Main Page

Copyright ©2000, Marilyn Huffman. All rights reserved.