Lesson 5

We've covered a lot so far. Text & font manipulation, images, links. As far as the basics go, there's not a lot more.
I think I'm going to take this time to tell you about screen resolution. The screen I work on is 800 pixels by 600 pixels. Many use 640x480 and a few use 1024x768. I'm sure that there are even a few others out there. What does this have to do with anything? It has a lot to do with how your pages will look to them. Here are a couple screen shots of pages at different resolutions.

 

640×480 800×600 1024×768

 

It is a very good idea to check your page at other resolutions. Your carefully crafted layout might fall apart at other resolutions. There is a handy little MS Powertoy called Quickres that lets you easily switch screen resolutions.

 


Now we are going to look at a couple formatting tools available to you. First one is <BLOCKQUOTE>. I've been using it throughout this whole tutorial. Basically it pulls your margins in from both sides. (I don't know if that's the proper terminology but if you understand what I mean I guess it's close enough).

<BODY BGCOLOR="#FFFFFF">
<BLOCKQUOTE>
WE HAVE learned a lot of basic tags from KNR Friends Tutorials on web creating & designing. 
</BLOCKQUOTE>
</BODY>
WE HAVE learned a lot of basic tags from KNR Friends Tutorials on web creating & designing. 

I'm sure when <BLOCKQUOTE> was first devised it had a loftier purpose, such as quoting profound bits of prose from authors I've never even heard of. But here in the trenches it serves a more mundane purpose... easy indenting.


Another very useful little tool is a LIST. There are ORDERED lists and UNORDERED lists.

This is an ordered list
  1. something big
  2. something small
  3. something short
  4. something tall
This is an unordered list
  • something red
  • something blue
  • something old
  • something new
First, we will build an UNORDERED list. It's very simple-    really.

Start with this...

<BODY BGCOLOR="#FFFFFF">
What I want for my Birthday
</BODY>
What I want for my Birthday

Note- technically we have not started to build the list yet. This is just a sort of heading.


Add a pair of unordered list tags.

<BODY BGCOLOR="#FFFFFF">
What I want for my Birthday
<UL>
</UL>
</BODY>
What I want for my Birthday


Add a list item.

<BODY BGCOLOR="#FFFFFF">
What I want for my Birthday
<UL>
<LI>a motorbike
</UL>
</BODY>
What I want for my Birthday
  • a motorbike


Add a few more...

<BODY BGCOLOR="#FFFFFF">
What I want for my Birthday
<UL>
<LI>a motorbike
<LI>a pair of new shoes
<LI>a guitar
<LI>a Rolex watch
<LI>a PC
</UL>
</BODY>
What I want for my Birthday
  • a motorbike
  • a pair of new shoes
  • a guitar
  • a Rolex watch
  • a PC

Wow! You made a list!


How to make an ordered list? Easy! Change the <UL> tag to <OL>.

<BODY BGCOLOR="#FFFFFF">
What I want for my Birthday
<OL>
<LI>a motorbike
<LI>a pair of new shoes
<LI>a guitar
<LI>a Rolex watch
<LI>a PC
</OL>
</BODY>
What I want for my Birthday
  1. a motorbike
  2. a pair of new shoes
  3. a guitar
  4. a Rolex watch
  5. a PC


Another type of list is a definition list.

 

aardvark
A burrowing, ant-eating African mammal. And, as everyone knows, the first word in every self respecting dictionary. Did you know there's such a thing as an aardwolf?

Start with this...

<BODY BGCOLOR="#FFFFFF">
<DL>
</DL>
</BODY>


Then add a definition title...

<BODY BGCOLOR="#FFFFFF">
<DL>
<DT>Electronic Greeting cards
</DL>
</BODY>
Electronic Greeting cards


And a definition item.

<BODY BGCOLOR="#FFFFFF">
<DL>
<DT>
Electronic Greeting cards
<DD>You can express your love, sympathy, care and wishes to your dear and near. It is the best way to say that you care for them. Knrfriends site has enabled the facility for you to send e-cards. Click the banner above to show that you care.
</DL>
</BODY>
Electronic Greeting cards
You can express your love, sympathy, care and wishes to your dear and near. It is the best way to say that you care for them. Knrfriends site has enabled the facility for you to send e-cards. Click the banner above to show that you care.


As a finishing touch I like to make the definition title bold. It's not required, but I think it looks much better that way.

<BODY BGCOLOR="#FFFFFF">
<DL>
<DT><B>Electronic Greeting cards</B>
<DD>You can express your love, sympathy, care and wishes to your dear and near. It is the best way to say that you care for them. Knrfriends site has enabled the facility for you to send e-cards. Click the banner above to show that you care.
</DL>
</BODY>
Electronic Greeting cards
You can express your love, sympathy, care and wishes to your dear and near. It is the best way to say that you care for them. Knrfriends site has enabled the facility for you to send e-cards. Click the banner above to show that you care.


Another little widget that you will find yourself using alot is the Horizontal Rule.

<BODY BGCOLOR="#FFFFFF">
<HR>
</BODY>



We have a few options available to us...

<BODY BGCOLOR="#FFFFFF">
<HR WIDTH=20%>
<HR WIDTH=50%>
<HR WIDTH=100%>
<HR WIDTH=20>
<HR WIDTH=50>
<HR WIDTH=100>
</BODY>








This one is pretty self explanatory.

<BODY BGCOLOR="#FFFFFF">
<HR WIDTH=60% ALIGN=LEFT>
<HR WIDTH=60% ALIGN=RIGHT>
<HR WIDTH=60% ALIGN=CENTER>
</BODY>





We can control the thickness...

<BODY BGCOLOR="#FFFFFF">
<HR WIDTH=60% SIZE=1>
<HR WIDTH=60% SIZE=3>
<HR WIDTH=60% SIZE=8>
<HR WIDTH=60% SIZE=15>
</BODY>






And we can make it a solid line.

<BODY BGCOLOR="#FFFFFF">
<HR WIDTH=60% SIZE=1 NOSHADE>
<HR WIDTH=60% SIZE=3 NOSHADE>
<HR WIDTH=60% SIZE=8 NOSHADE>
<HR WIDTH=60% SIZE=15 NOSHADE>
</BODY>






Remember when I said that the browser doesn't understand formatting, it just displays text in a steady stream? Kind of like this...

<BODY BGCOLOR="#FFFFFF">

                 \|/ 
                (@ @)
     +----oOO----(_)-----------+
     |      WEB DESIGNING      |
     |           for           |
     |        BEGINNERS        |
     +-----------------oOO-----+
               |__|__|  
                || ||
               ooO Ooo
</BODY>
\|/ (@ @) +----oOO----(_)-----------+ | WEB DESIGNING   | | for | | BEGINNERS | +-----------------oOO-----+ |__|__| || || ooO Ooo


Well, with the <PRE> (preformat) tag, we can put a stop to that and have things displayed the way we type them.

<BODY BGCOLOR="#FFFFFF">
<PRE>

                 \|/ 
                (@ @)
     +----oOO----(_)-----------+
     |      WEB DESIGNING      |
     |           for           |
     |        BEGINNERS        |
     +-----------------oOO-----+
               |__|__|  
                || ||
               ooO Ooo
</PRE>
</BODY>
                 \|/ 
                (@ @)
     +----oOO----(_)-----------+
     |      WEB DESIGNING      |
     |           for           |
     |        BEGINNERS        |
     +-----------------oOO-----+
               |__|__|  
                || ||
               ooO Ooo

* Notice that a monospaced font is used.

The last tag we're going to discuss is a comment.

<BODY BGCOLOR="#FFFFFF">
<!--This is a comment-->
This is not<P>>
A comment can be placed anywhere in the document and the browser will ignore everything inside the brackets. You can insert hidden messages, <!--Hi Mom!--> notes to yourself, <!--Pick up milk--> or write a helpful message to someone looking at the source of your page.<!--Copy anything off me and you're dead!-->
</BODY>
This is not

A comment can be placed anywhere in the document and the browser will ignore everything inside the brackets. You can insert hidden messages, notes to yourself, or write a helpful message to someone looking at the source of your page.


Just to be absolutely clear, the comment must start with <!-- and end with -->
You can even put other html tags in a comment and they will be ignored. The browser will just keep ignoring everything until it sees a -->


 

Well, that about does it! You now know all the basic tags you'll need to create a web page! Aren't there more tags? Oh yeah. Lots more. But rest assured you've got about 70% of the weapon you'll need to make a web page. After you're thorough with these main tags, you may want to look at some of my other slightly more advanced tutorials: Table Tutor, Form Tutor and Frames Tutor. They will give you about another 27% of what you should know. What about that last 3% you may ask?? Most of that is either tags you will probably never have occasion to use. Or, tags that for all intents and purposes duplicate other tags - that is, perform the same function. Or, tags that have a very limited and specialized use and you can add them to your bag of tricks later.

Once you have made your pages you will need to upload them to a server. The server is a computer that is running a server program that doles out documents to whoever requests them. If you are up to the internet through your company or school computer, ask your system administrator how to go about getting space on your server for your pages. If you have your own Internet Service Provider ask them how to go about it. The only definite piece of advice I can give, is that for transferring your files, the best program to use is Cute FTP. This gem of a program makes transferring files between computers as easy as moving them around on your own computer.

<--BACK       

Introduction Lesson 1 Lesson 2 Lesson 3 Lesson 4 Lesson 5