"Building a Web-Page" HOW-TO
by: Bill Schell (e-mail: bill@vikingasia.org); last updated: Thursday, 8 August 2002
Introduction: In the past several months - I've spent some time helping people get acquainted with the whats / wheres / hows / of building their own (simple) web-site. In the past 5-6-7 years I've built probably 50 or 60 web-sites. I hope I can help you with your introduction to the wonderful world of building your own web-page.
the basics: First - lets outline some terms - so that we both know what the terms mean - some of them have had a lot of mis-use in the industry...
Web-Browser-software (sometimes called a "Web-Client"): this is the piece of software that someone 'surfing the web' has on their PC or workstation. Tthe most common names for this product are "Microsoft Internet Explorer" and "Netscape Navigator". There are some other minor brands like OmniWeb - but unless you use some fairly esoteric operating systems you will almost always 'browse or surf' the web with either Netscape or Microsoft's product(s). Further - this is the browser-set that you should make certain that all of the web-pages you write can be read adequately with..
Summary: Web-Browser-software is merely the 'display' portion of a text editor or word processor, ALL it does (in it's most simple form) is DISPLAY on the screen of a computer monitor the text & images in the file that is typically called a "Web-Page" on a remote computer. (However a "Web-Page" may also be stored on the same computer that displays it...Web-Server-software: this is typically something called "Apache" - this software server runs on the "Web-Server-hardware" - which can be almost any hardware, Intel, Macintosh, Sun, HP, IBM, etc. etc. etc.) The Apache product uses the "open source model" and it is a free product. There are, again, other sources of Web-Server-software, but the Apache is the most prevalent. The Microsoft product in this category is called "Internet Information Server" or IIS for short. - it runs only on Microsoft operating systems (Windows 98, Windows NT, Windows ME, Windows 2000) and only on Intel-brand hardware. Netcscape also makes a Web-Server-software product, but it comes in such wide and varied configurations that names are too complex to mention.
Summary: Web-Server-software is simply software that runs on a server(hardware) that responds to incomming (from the network - ultimately from the Web-Browser-software somewhere) requests to send-back-to the Web-Browser-software, some "web-page" (that file with the ...htm or ...html name). In the simplest form this is all that Web-Server-software does.. Remember too, that in most instances there are at least two connotations for "Web Server" _ one for the Hardware, one for the Software, - but in 'most cases' when people refer to a "Web Server" they are referring to the combination of hardware & software.
Web-Page: (file with name ending in ...htm or ...html) this is a file that you will create, 'your web-page' - it is created with, in most instances, a glorified "text-editor" or a word-processor that has the ability to save "plain text" files with the "html 'tags'" in it. This is the file you're going to create to make your "Web Page", and you will typically create this file (web-page) on your 'home or office' computer (some computer that is local to you - has a local hard-disk).
FTP: "File Transfer Protocol" - this is a network-utility that all computers have, by default, and it is the method that you will use to move your web-page-file (...htm or ...html) from your local computer to the web-server(hardware) computer (where I hope you already have an account) and then people can access your "web page" from the web-server-hardware computer via the Web-Server-software running on that computer and their Web-Browser-software running on their computer.
Provisio: - more complex web-pages include a number of other active and passive components, including, but not limited to:
What you will need to build & publish your web-page(s): (once you build and publish one - you'll want to do more!)
Step One - create a title & a horizontal rule to separate the title from the body-text
Saving your file:
Step Two: create a "body" text-area:
Step Three: - build a "footer" area:
then something like: "by: George Smith; last updated: Today's Date"
Now - you've created a web-page, your first of many...
Testing your web-page locally:
Netscape Communicator's Navigator:
Microsoft's "Internet Explorer":
FTPing your WebPage to the "Web-Server-hardware":
This is where things may get 'tricky' - so stay with me and we'll try to get you through it.
You have accomplished several steps so far, - created your page, saved it - & viewed it with a local browser from your local hard disk. The next step in the process is to "publish" your web-page on a "Web Server(hardware)" so that others may view the file with their web-browsers from wherever they happen to be.
so - let's do this - we'll assume you're using a "PC" with some form of "Microsoft" operating system:
go to the "Start=>Run" box and type in "command.com" - that should give you a window with a "C:\" prompt
in there you'll want to 'change directory' to wherever you've saved your web page files - we'll assume it's something like: d:\WebPages, so the commands you'll enter at the "C:\" prompt would be:
Now - we've gotten you into what is called the "local directory" where your web-pages are stored, just to verify, try doing a "dir" on this directory - it should show you something such as:
now - you'll be wanting to enter the "ftp" command - and you'll have to know the name of the ISP where your web-pages will reside -
Now - having said all this about re-naming the file to "index.html" - lets 'assume' that you have or want to have several different web-pages on a single ISP account - how do you do that? Here's how:
your 'main' web-page might be located on a server called "server1.myISP.com"
it would typically be in a directory in the "users" area, so the 'real' (on that computer) path to your directory for your html files would be:
server1.myISP.com/users/myname/public_html/index.html
HOWEVER, if you give the URL to your web-site to someone - the URL they would type into their Web-Browser-software would be something like:
http://www.myISP.com/~myname/
what this should tell you is that the "server1" and the "users" and the "public_html" are all 'default' in the Web-Server-software on the Web-Server-hardware, so that the user(s) / client(s) of your web-page don't have to remember to type all that 'stuff' into their Web-Browser-software...
so- FURTHER: to having more than one web-page - here's how you build that structure on the ISPs web-site/server:
in your directory: /users/myname/public_html
you create some new directories (use the "mkdir" command in ftp):
so that your directory structure on the Web-Server-hardware looks something like this:
then in your directory at your ISP's Web-Server-hardware you should have:
SO - if / when you want to build separate web-page-topics - you merely create the new directories and the ...html files on your local computer - and when you "FTP" those files to the Web-Server-hardware computer, in your FTP you do a "cd public_html/topic1" if you are up-loading-files to the topic1- web-page, and if it is the 'main' page for 'topic1' then you'll want to "ftp my_topic1.html index.html" once you have cd'd into the appropriate directory.
One of the key things to remember when doing "FTP" is that you need to know where (what directory) you are FTPing FROM and what directory you are FTPing TO. - Once you learn about the different directories, & how to FTP to/from them, you're pretty well on your way to putting the files where the general public can access them.
Some Administrivia:
Here's a collection of things you might want to think-about / consider, but a lot of this depends on what the audience is for your web-site and what sorts of people you want to access it.
there's a whole bunch of "hidden" things going-on behind the scenes when people access your web-site. Further, when/if you want someone to be able find your web-site in a 'search engine'... The concept behind all this is "Meta Tags" - and there is a way you can 'set' these (as opposed to letting them 'default') by finding something like this:
Netscape Communicator's Composer: Format(menu)=>Page Properties and/or Format(menu)=>Page Title
Dreamweaver: Modify(menu)=>Page Properties
------ this is the end of this file at this time (Thursday, 08 August 2002); more information to follow later -----------