Administrative Stuff
Please sign up for CIS services on MUGSI if you have not done so already. Visit http://www.mcmaster.ca/dataserv-htm/mcss0001.htm. You must register with MUGSI to log on to Windows in the computer labs and to use e-mail.
Also, please sign up for the class electronic discussion list. Francois has put up instructions for this at http://www.chass.utoronto.ca/~lachance/mcmaster/humcom.htm
HTML: Heads Up!
Every web page is programmed with HTML. HTML stands for HyperText Mark-up Language.
Your HTML project is due soon. This means that you have very little time to learn HTML.
This lesson will get you up to speed with the basics on what you need to know.
See the course timeline and access links to the assignment at http://www.chass.utoronto.ca/~lachance/mcmaster/assignments.htm.
HTML: Where to Begin
Here are the main steps in setting up a web site.
Locate and start up a text editor. This is an application that will let you type in and save plain-text, i.e. text with no bolding, no italicizing, etc. One good application for this is Notepad, which comes with Windows. You could also use your favourite word processor, but make sure that when you save your file, you select the file format as ASCII. You will do all of your HTML programming in this text editor.
Begin typing up your file. The most important codes are listed below.
Save your file (and save often!). As always, try to stick to setting an 8-character filename, followed by a dot and an extension. This extension must be set as htm or even (the unusually 4-character) html. If you do not do this, the Internet browser will not recognize your file as an HTML file. For example, you could have a file home.htm or home.html, but not home.wpd, home.doc, or home.rtf.
Load up your favourite Internet browser and take a look at your file from there.
Switch back to your file in Notepad and make any necessary adjustments. Resave.
Continue on this way, repeating steps 6 and 7, until your page looks and works the way that you would like.
When that web page is finished, begin the next one! Repeat until your site is complete.
AN IMPORTANT WARNING
Keep a backup copy of all of your work! Save all of your files to a
floppy every once in a while, and store the disk somewhere safe. You
never know...
HTML: The Bare Minimum
So, now that you know what you have to do, it's time to start programming!
(Remember to save often as you type away!)
Every web page has these items.
<HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> </BODY> </HTML>
(You can view this web page here. It's not very interesting, though, because it doesn't have any content at all.)
Notice all of the <> and </>. We call these tags. As you can see, there are all sorts of tags. Whatever is written inside the <> or </> tells the browser what kind of tag it is. <> means "turn on this tag". </> means "turn off this tag".
There are 4 tags listed here:
Here is what the browser thinks when it reads these tags:
You might understand it better like this:
Here is some coding for a more interesting web page.
<HTML> <HEAD> <TITLE> The Title Goes Here </TITLE> </HEAD> <BODY> Here is where the content for the main part of the screen goes. </BODY> </HTML>
Take a look at this page here. Notice that "The Title Goes Here" shows up in the title bar for the browser, and that "Here is where the content for the main part of the screen goes." shows up in the main browser window.
If you can understand what's going on, good work! You're already on your way--you are ready to learn and apply more HTML tags, listed below.
If you are still struggling, why not try making a sample page like these ones? You can even just copy and paste the text above to your text editor. Save the file (remember, save as a text file, and use an htm or html extension). Then start up your WWW browser and open the file. See above for more help.
HTML: Important Tags
Here are some tags that you will probably need. Remember that all of these will be used between the <BODY></BODY> codes.Formatting Text
<H1></H1>
<CENTER></CENTER>
<P></P>
<STRONG></STRONG>
<EM></EM>
<U></U>
Spacing out the Page
<BR>
<HR>
Adding Images
<IMG SRC="filename.xxx">
Linking
<A HREF="filename.xxx"></A>
<A HREF="http://www.whatever.com"></A>
<A HREF="mailto:whatever@whatever.com"></A>
Making Lists
<OL></OL>
<LI></LI>
<UL></UL>
<LI></LI>
HTML: What You Know So Far
Click here for a sample website that includes all of the codes that you have learned up to here on this page. Then take a look at the coding for the page here. You can also look at the coding for this page, or for ANY page on the Web, by viewing its source code. To do this, access the page, and select VIEW | SOURCE in Internet Explorer or VIEW | DOCUMENT SOURCE in Netscape Navigator.
HTML: Other Cool Stuff
To make your web site seem more "official", try calling the main page index.htm or index.html. When you access a web site on the Internet, it automatically loads up the file with one of those names. For example, notice that to get to http://www.mcmaster.ca, you don't need to type in http://www.mcmaster.ca/index.html (although either link works).
To spice up your site, try using some nifty colours. Visit this site to test out combinations and copy their codes: http://www.hidaho.com/colorcenter/cc.html. Avoid loud combinations, though, because your instructors have a lot of pages to look at, and their eyes get sore pretty quickly! :-)
If you can't find what you're looking for here, surf the 'Net. There are lots of HTML help sites out there. Also, you could try viewing the source of a web page to see how it was programmed. Use the menu at the top of the browser screen. (For Internet Explorer, select VIEW | SOURCE; for Netscape Navigator, select VIEW | DOCUMENT SOURCE.)
This page copyright Gord Roberts, May 1999. |