Lesson 3 - Basic Text Editing

BASIC TEXT EDITING - SECTION 2

    It is important to signify headlines on your homepage with headers, as it will help in making your documents understandable. There are 6 different kinds of headers, shown here :

<h1>Header 1</h1>
<h2>
Header 2</h2>
<h3>
Header 3</h3>
<h4>
Header 4</h4>
<h5>
Header 5</h5>
<h6>
Header 6</h6>

    The end result shown on your browser should look like this :

Header 1

Header 2

Header 3

Header 4

Header 5
Header 6

    Next, we move on to paragraphs, defined by this tag <p>. As each homepage might contain a few hundred words, it is vital to seperate them into different paragraphs instead of lumping them together. All you have to do is, just insert your text within the <p> and </p> tags. You could for instance, change it into this :

<p align="center">Center</p>

    So that your document would align itself in the center. You could also change "center" into "left" or "right", try it! If your document contains several thousand words, you could substitute "center" with "justify". Then, alter your browser screen size, notice that the text will change accordingly to your browser size.

    To seperate text, you could use either the <br> or the <hr> tags. Both have different functions. <br> stands for 'break', so for instance if you want to break a line, just insert this tag.

<p>Let's break it here<br>to make it easier to read.</p>

    This is what you will get :
Let's break it here
to make it easier to read.

    As for <hr>, which stands for 'horizontal rule', you will get a line dividing your text. Both the <hr> and <br> tags doesn't need a closing one. You could also adjust it's width, alignment and size or just plain <hr> will do. Pay attention to these few lines :

<hr align="center" width=50% size=10>
<hr
noshade>

    This is what you will get, experiment on it yourself!



    Here's a small text effect, only for Internet Explorer users.

<marquee>Move it! Move, move, MOVE!</marquee>

    Look at this! It's moving!
Move it! Move, move, MOVE!

    That's all for this section, continue with Section 1 or Section 3. Click here to get to Lesson 4 : Images & Links.


This Page Is Published And Maintained By Wong Kuan Yew
Copyright © 2000 Wong Kuan Yew. All Rights Reserved.
Last Updated: