Subject: Creating web pages II From: Jim Buchanan <c22jrb@dawg.delcoelect.com> Reply-To: <delco_explorers@hybiss.delcoelect.com> X-List-Processor: perlproc 0.9, By J.R. Buchanan X-Comment: Delco Computer Explorers mailing list Sender: delco_explorers@hybiss.delcoelect.com
OK, we left off last time knowing what the source for a very simple web page looks like, but we don't know how to create or view it.
I'll break this up into Windows 95 and Linux. I'll start with W95, and do Linux in the next post.
First start up Notepad. Start->Programs->Accessories->Notepad
Type in the web page:
<html> <head> <title>A demonstration web page</title> </head> <body> This is a test. </body> </html>
Now save the file in a convenient directory. I used C:\TEMP\, and called the file C:\TEMP\FOO.HTML
If you have to create a new directory, use the "Windows Explorer" program. Start it from the Start menu, Start->Programs->Windows Explorer. In the left hand pane, click on the directory that will old the new directory. In my case, I'd click on "C:". Then click on "File" on the pull-down menu bars. Select "New". then "Folder". File->New->Folder. Microsoft sometimes calls directories "Folders". A new directory called "New Folder" will be created. Now change it's name to something sensible. You should be able to type the new name directly over the "New Folder" name if you don't click on anything else first.
If you do click on something else, all is not lost, use the file menu again, File->Rename. After doing this, you'll be able to type the desired name in over "New Folder".
I don't care what anyone says, after typing that, you're not going to convince me that a GUI (Graphical User Interface) is any easier or more intuitive than typing "mkdir temp" on a command line. :-)
Now, to view the page with Internet Explorer 4.0 (I assume earlier versions are similar, but I don't have one handy top check), start IE, probably by double-clicking on the icon on your desktop.
In the "Address" window, type in "file:/" followed by the file name. I used "file:/C:\temp\foo.html", since that's where I saved the file to.
Viewing the file with Netscape is similar. Start Netscape, probably by double-clicking on the icon on the desktop.
In the "Location:" window, type in "file:/" followed by the file name. I used "file:/C:\temp\foo.html", since that's where I saved the file to.
Next time, I'll go through this procedure under Linux. Then we can move onto making the rather boring example page a bit more interesting.
-- Jim Buchanan c22jrb@dawg.delcoelect.com jbuchana@iquest.net ================= http://members.iquest.net/~jbuchana ==================== "Sure, from a motivational point of view, arbitrary restrictions are challenging to work with, but when's the last time you saw a gleeful COBOL programmer?" -Larry Wall ==================== http://hybiss.delcoelect.com ========================