Page 1 | Page 2 | Page 3 | Page 4 | Page 5 | Page 6

There are acouple more basic commands to get acquainted with. Most of these will be used for your text. Here are acouple of tags to help you give your pages a little more style.

<H1-6> This is a header tag. It will give you a big or small size header depending on what number you select 1 being the largest, 6 being the smallest.
<CENTER> This is a center align tag. It will center everything in between this tag.
<B> This is a bold tag. It gives you nice bold text.
<I> This is an italic tag.It makes the text italicized
<P> A paragraph break tag. It puts a space in between paragraphs.
<BR> A break tag. It breaks a line.(kind of like the <P> tag.)
<HR> A horizontal rule tag. It places a narrow line across the page.


Now that you know these codes, let's give them a try. Write this in your text editor.

 

Untitled - Notepad
File Edit Search Help
<HTML>
<HEAD>
<TITLE>Using new tags</TITLE>
</HEAD>
<BODY>
<CENTER>
<H1>Welcome to my web page</H1>
<HR>
<P>
I'm starting to get the hang of this stuff. Just place whatever text you like in here.
Just give a brief paragraph of something interesting to say. Or you could copy down what I'm saying just to get and idea of what it will look like after you save it. You'll notice the center tag keeps everything centered on the page.
</P>
<P>
Page designed by <B>(place your name here)</B>
</P>
<BR>
<I>Have a nice day!</I>
</CENTER>
</BODY>
</HTML>



Note: You do not have to close the <BR> tag and on most occasions, some people do not close the <P> tag. I prefer to close the <P> tag though, because some browsers do not read it as closed when it should be.. so close the <P> tag like this </P>
Save it, then open the file in your browser.

You should have a page that has a nice big header on it. The text should be centered on your page. Your name should be in bold text, and Have a nice day should look like this. If not, check to make sure that you opened and closed all you tags properly. If you forget to even close one, it can make your page look like a terrible mess. Check for spelling inside the tags too, it won't let you slide if you spell the coding wrong.

A lesson to try is:
Write a couple more pages similar to this one, try using different numbered header tags (i.e. <H4>). And try using the break tags in different spots to see exactly what they do. Close the center tags after a paragraph and write some text below the center tag to see where text will be placed after it. Believe me, in the long run it will help you greatly to practice and be very familiar with each tag.


~~~~~~~~~~~~~~~~~~~~~~~~

Page 3 | HOME