Summer 2000
By Carman Neustaedter
Creating Web Pages:
Day 1 – Introduction
The goal is to introduce the Internet and software applications that can be used to develop web pages.
Topics Covered:
Demonstrations:
Check out these web sites for learning about web pages:
www.cutehtml.com (Cute HTML Editor)
tucows.oanet.com/htmlbeginner95.html (Beginner HTML Editors)
tucows.oanet.com/htmledit95.html (Advanced HTML Editors)
http://msdn.microsoft.com/workshop/author/html/beghtml.asp? (MSDN HTML Tutorial)
http://www.ucalgary.ca/it/itf/general/web/web-01.html (U of C Information Technology)
Check out these web sites for background images:
http://www.grsites.com/textures/
http://www.pixelfoundry.com/bgs.html
Notes:
World Wide Web Organization
The Internet
The Internet is a computer network made up of thousands of networks world-wide. No one knows exactly how many computers are connected to the Internet. It is certain, however, that these numbers are in the millions and more are added every day.
No one is in charge of the Internet. There are organizations that work on technical aspects of the network, but no one group is in control. Internet traffic flows through routers that send data to different computers connected to the Internet.
TCP/IP is the protocol that is used for the Internet. A protocol is just a standard by which something is done. TCP/IP works by sending data in packets to computers connected to the Internet. If you are downloading a file or loading a web page, the files needed are split up into chunks and sent to you chunk by chunk.
Servers & Domains
ie.www.ucalgary.ca is the URL where the University of Calgary’s web page is
ucalgary.ca is the domain name, and therefore we are looking for the web page on the server computer pointed to by ucalgary.ca
HTML Files
ie.
myWordFile.doc (doc means it is a Word document)
myExcelFile.xls (xls means it is an Excel spreadsheet)
myWebPage.html (html means it is a web page viewable in Netscape or Internet Explorer)
myWebPage.htm (means the same thing as html)
Directories
ie.
www.cpsc.ucalgary.ca/~carman/
this URL says that my web page is on the CPSC server in a directory called carman.
HTML
ie. <BOLD> This text will be bold. </BOLD>
Where Do I Create a Web Page?
Important Tags
You can see that the above tags usually have a start tag and a finish tag. Everything between start and finish is formatted according to the tag. You can have tags nested inside of each other as well.
ie. <BOLD><CENTER>This text will be bold and centred</BOLD></CENTER>
<UL>
<LI>Item 1
<LI>Item 2
</UL>
the <UL> tag starts the bulleted list, each <LI> tag specifies where a bullet will appear. The </UL> tag tells where the bulleted list ends.
Assignments:
Personal Web Page
Begin the design of a personal web page. Add information about yourself and insert some pictures that you either have scanned or found on the Internet (to save a picture on a web site, just right click on it and Save Link As). Save your page and any picture files to a floppy disk.
Day 2 – Publishing Web Pages & More HTML Tags
The goal is to develop and introduce more advanced techniques used for designing web pages. Students will also learn how to publish their web pages on the Internet.
Topics Covered:
Demonstrations:
Winsock FTP or another transfer program
Upload personal web page files to an ACS account and a create public_html directory with proper permissions for viewing.
Notes:
Linking Pages
Putting Your Page on the Internet
UNIX commands
|
UNIX Command |
DOS Command |
|
ls (displays files) |
dir |
|
ls -al (displays all files in a list) |
|
|
rm <filename> (removes a file) |
del <filename> |
|
rm -r <directory name> (removes a directory and all its contents) |
deltree <directory name> |
|
cd <directory name> (changes directories) |
cd <directory name> |
|
cd .. (note there must be a space after cd before the two periods) (moves back one directory) |
cd.. (don’t need space after cd) |
|
mkdir <directory name> (make directory) |
mkdir <directory name> |
|
cp <filename> <location> (copies file) |
copy <filename> <location> |
|
mv <filename> <location> (moves a file or renames it) |
move <filename> <location> rename <filename> <new name> |
|
man <UNIX command> (displays list of how to use a UNIX command) |
|
|
man -k <word> (searches manual pages for pages containing your word) |
|
|
pine (open up email program) |
|
|
chmod <permissions> <filename> (changes permissions on a file) |
attrib <permissions> <filename> |
Creating a Directory for Your Web Page
To log in to your ACS account, go to Start -> Run, then type in telnet acs5.acs.ucalgary.ca
This will log you into one of ACS's computers. You must enter in your USERNAME and PASSWORD. When asked for terminal type, choose 1 for VT100.
You will get a command prompt where you can enter the following command.
acs6:/u201/cgneusta--> mkdir public_html
Sending Your Files to Your Web Site
Changing Permissions (giving the world access)
acs6:/u201/cgneusta--> cd ..
acs6:/u201/--> chmod 755 cgneusta (where cgneusta is your username for your ACS account)
acs6:/u201/--> cd cgneusta
acs6:/u201/cgneusta--> chmod -R 755 public_html
Viewing Your Web Page on the Internet
your web page can now be viewed at:
www.ucalgary.ca/~cgneusta
where cgneusta is your login name for your ACS university account
Supplementary Notes:
CHMOD - Setting Permissions in UNIX
The command CHMOD is used to change the viewing permissions of files in your ACS account. For your web page you want the world to be able to view your web page files.
Each file has permissions, depending on the type of user.
There are three user types:
Each user has permissions for:
So, for you, group, and others there are rwx permissions ([r]ead, [w]rite, e[x]ecute).
They are grouped like this
|
you |
group |
others |
If the user is to have a permission to either read, write, or execute, that letter is assigned a 1. If not, it is assigned a 0.
eg. this assignment gives you permission to read, write, and execute your file. Nobody else is allowed to read, write, or execute your file.
|
you |
group |
others |
eg. this assignment gives you permission to read, write, and execute your file. It also allows the rest of the world to view your file or run it, but not write it (make changes to it).
|
you |
group |
others |
the chmod command can use a number to set the permissions of a file:
eg.
chmod 755 public_html
The number just represents what permissions you are giving the file.
The number is a base 8 number (octal) representing the users: you, group, others
If you create a number for each of: you, group, others
you can put the numbers next to each other to form the number for the chmod command.
First you must create an octal number for each user.
Take the combination of 1's and 0's from above to form an octal number using this conversion table:
|
Binary Number |
Octal Number |
|
000 |
0 |
|
001 |
1 |
|
010 |
2 |
|
011 |
3 |
|
100 |
4 |
|
101 |
5 |
|
110 |
6 |
|
111 |
7 |
Then combine each user's octal number to create a 3 digit number. This is the number used for the chmod command.
eg.
If I want the world to be able to view a file then I want to give read and execute permissions to the users group and others. I want to keep my permissions at read, write, and execute still though.
I would use this series of 1's and 0's:
|
you |
group |
others |
by using the conversion table above I would get:
|
you |
group |
others |
this would give me the number: 755
and I would use the command: chmod 755 <filename>
Assignments:
Update Your Web Page
Add additional information to your web page, such as your hobbies, interests, and more information about yourself. Create 2 more pages with this information and link all three pages together.
Day 3 – Hit Counter, Guestbook, and Sound
The goal is to develop and introduce advanced web design features such as special plug-ins and HTML code to enhance a page.
Topics Covered:
Demonstrations:
Hit Counter
<img src="http://www.ucalgary.ca/cgi-bin/Count.cgi?dd=B&df=NAME-OF-YOUR-PAGE">
Guestbook HTML Source Code (by Adam King)
<HTML>
<HEAD>
<TITLE>My Guestbook</TITLE>
</HEAD>
<BODY BGCOLOR="CCCCCC">
<H1> Sign In, Please...</H1>
<FORM METHOD="POST" ACTION="mailto:carman@cpsc.ucalgary.ca"
ENCTYPE="text/plain">
<B>Please enter your name: </B><INPUT NAME="username" size="30">
<BR>
<B>and your email address: </B><INPUT Name="usermail" size="30">
<P>
<CENTER>
<B>What do you think of my site?</B>
<P>
<INPUT TYPE="radio" NAME=I_think_that VALUE="It's_Great">It's Great!
<INPUT TYPE="radio" NAME=I_think_that VALUE="It's_Okay">It's Okay!
<INPUT TYPE="radio" NAME=I_think_that VALUE="It_Needs_Work">It Needs Work!
<BR>
<P>
</CENTER>
<H3>Make any comments you'd like below:</H3>
<CENTER>
<TEXTAREA NAME="comment" ROWS=6 COLS=60></TEXTAREA>
<P>
<B>Thanks for your input</B>
<BR>
<INPUT TYPE=submit VALUE="Send it!">
<INPUT TYPE=reset VALUE="Start over">
</CENTER>
</FORM>
<A HREF="index.html">Back to Main Page</A>
</BODY>
</HTML>
Midi Sound
<bgsound src="mymusic.mid" loop=1>
<embed src ="mymusic.mid" hidden=false autostart=true height=60 width=144 volume=50% loop="no">
Scrolling Text for IE (Java Script)
<SCRIPT language="JavaScript">
<!-- begin
function scrollit(seed)
{
var msg = "Add Your Scrolling Text Here"
var out = " ";
var c = 1;
if(seed > 0)
{
for(c=0 ; c < seed ; c++)
{
out += " ";
}
out += msg;
seed--;
var cmd = "scrollit(" + seed + ")";
window.status = out;
timerTwo = window.setTimeout(cmd,80);
}
else
{
if(-seed < msg.length)
{
out += msg.substring(-seed, msg.length);
seed--;
var cmd = "scrollit(" + seed + ")";
window.status = out;
timerTwo=window.setTimeout(cmd,80);
}
else
{
window.status = " ";
timerTwo = window.setTimeout("scrollit(120)",80);
}
}
}
scrollit(150);
// end -->
</SCRIPT>
Assignments:
Add the above mentioned effects to your web page and upload it.
Day 4 – Alternate Web Hosting & Design Techniques
The goal is to find other places to store web pages on the Internet for free. Discussion will be made about good design techniques to enhance the user’s ease-of-navigation.
Topics Covered:
Demonstrations:
Free Web Hosting URLS
http://geocities.yahoo.com/home/
http://angelfire.lycos.com/
Good Design URLS
www.shockwave.com
www.microsoft.com
www.yahoo.com
Assignments:
Free Web Hosting
Upload your web page to a server that offers free web hosting so your page can exist after the course is finished.
Design Techniques
Modify your page to include good design techniques such as having a navigation bar and back buttons on each page.
Day 5 – Project
The goal is to use all the tools from the previous classes to complete a personal web page.
Topics Covered:
Assignments:
Personal Web Page
Complete your personal web pages using all the tools you have learned during the course.