Designing an HTML Document By Hand and Posting It On The Web
In this lab, you will place a simple web page on the Internet. You
will do this by placing these files in a special directory in account
on ITS.
Make sure you have an account for the Atrium. If not, go to the
front desk of the Atrium where you sign.
If you used a 3rd party site to host your files the upload
instructions are similar, except you likely don't have to create any
special directory.
- Start with this skeleton HTML page as
a starter. Basic HTML will make this
assignment go easily.
When you have the skeleton HTML page open, you can do, Edit, Select
All, Edit, Copy. This will copy the sample HTML text. Now open up a
text editor, such as notepad (start/programs/accessories/notepad). Now
you can do, Edit, Paste. Save your file to a floppy and save it as
index.html. Make sure your file is a .html type of file and not
a .txt file. Web pages need to be .html or .htm. It is prefered to be
.html.
Your web page will go in-between the <body> </body>
tags.
Create a simple begining web page that contains the following:
- Your name.
- Your email address, with a link so people can send you mail.
- Favorite web site link or so.
- Insert your favorite image or two. If you don't have photos
available, use some from Free
Graphics to make the site look interesting. Take a small thumbnail
image, not a large one. Or make a logo from cooltext.
Right click an image to save it to the disk. Remember when inserting an
image into a web page that you should not have any path such as A: in
the name of the image. This will cause problems. Just list a file name,
such as picture.jpg or whatever you named the file. You must
upload the image to your site.
- Title the page. Goes in-between the HEAD tags goes the title.
Make sure you use the right tag.
- A heading. Your page needs to have a nice heading. Use a font
color and center align tags on it.
- Set a background color in your BODY tag. Why not set the text
color too. It only take a moment.
- Set the alignment of things on the page.
- Be sure and use some formatting tags, such as bold, italic,
and/or underline.
- Create a directory called public_html. This is where you
will store all the web site's files.
- Telnet
over to your unix account.
- Create a directory (mkdir) called public_html using
the command
mkdir public_html - Change
the protections (chmod) on your main directory (.) and this
new directory (public_html) such that anyone (a) can
access (+x) these directories:
chmod a+x .
chmod a+x public_html
- Transfer your web pages to your unix account using FTP. Tripod
is ftp.tripod.com your host. Login with your username and password.
- Start up the MS-DOS Prompt
- Change to the directory that has your files. Such as a: or desktop, etc.
- Type the following to connect to the network via FTP:
ftp acc2.its.brooklyn.cuny.edu -
Enter your login name and password.
- Change the directory (cd) to public_html:
cd public_html - Indicate
that you are transferring text files by typing
ascii - Copy each html file
to your unix account.
put index.html
- Indicate that you are transferring binary files by typing
binary
- Copy each image to your unix account:
put image.jpg
- End your ftp session by typing
bye
- Make sure anyone (a) can read (+r) all of your web files.
(However I beleive the atrium does this automatically).
- First cd public_html (so that you are changing the files in
public_html only
- At a Telnet prompt, type
chmod a+r * - Use a web
browser to access your main web page. Be sure to check the links. Your
URL will be http://acc6.its.brooklyn.cuny.edu/~username or
http://acc4.its.brooklyn.cuny.edu/~username . Replace username with
your own user name. Note the ~ in the URL.
- Email the URL of your main web page to cis3.1@lawrencegoetz.com.