Home on the Web, Part II

This page contains some brief notes about becoming a provider of information on the World Wide Web. It was written for a talk given at the Mathematics and Computer Science Department Colloquium at Hobart and William Smith Colleges in January 1995, and later modified for a workshop given at the Spring 1995 meeting of the Seaway Section of the Mathematical Association of America.

Outline:

  1. HTML
    1. Headings
    2. Typefaces
    3. Preformatted Text
    4. Links
    5. Images
    6. Viewing the Source
  2. Forms
    1. A Demonstration
    2. How does it work?
  3. Tools
    1. Servers
    2. HTML Authoring
  4. The Future

HTML

HTML, the "HyperText Markup Language", is used to create files to be viewed with WWW browser programs like Netscape, Lynx, Mosaic and MacWeb. This sectin discusses some of the features you can use in an HTML document.

Headings

Typefaces

Text can be set in various typefaces, such as italics or bold. (The actual appearance depends on the browser you are using.)

The word Bold was written in the source file as <B>Bold</B> More examples:

Preformatted Text

   You should also know about something
called preformatted text, which is
supposed to appear exactly as you type
it, including spaces and blank lines.
This paragraph is preformatted.  This
is indicated by preceding it with <PRE>
and following it with </PRE>

Links

The most important elements on Web pages are links to other pages. These are indicated with the A command. The A command has an "HREF attribute" specifying the address of the page the link refers to. For example: <A HREF="myLinks.html">Great Links</A>

Images

An image is placed on the page with the <IMG> command, such as: <IMG SRC="user.gif">. The SRC attribute is the address of the file containing the image. This example gives:

Viewing the Source

You can view the source HTML file of any Web page, and "steal" it to use as a starting point for your own Web pages!


Forms

Forms are an advanced feature of the Web that allow interaction between the "client" (the Web browser) and the "server" (the program that sent you the Web page you are viewing).

A Demonstration

The Web Crawler search page uses a form.

Here is a demo form for looking up usernames at HWS.

Here is how some items on this form ae specified:

How does it work?

The processing of a form is complicated:

  1. Your browser displays a page containing a form.
  2. You enter your data and click the submit button.
  3. The browser packages the data you enters and sends it to the serve.
  4. The server, which can only server Web Pages, redirects the data to a program running on the server machine.
  5. That program processes the data, constucts a HTML page in reply, and sends that page back to the server.
  6. The server forwards the HTML response page to your browser.
  7. Your browser displays the page.

Tools

There are many software tools available to help with setting up servers and creating Web pages.

WWW Servers

A server program is used to publish information on the Net. There are several free or inexpensive World Wide Web server programs.

Set up one of these programs to run on your computer, give it some documents to serve, and you become a WWW publisher. Setting up a server to serve basic documents is not too difficult. (For MacHTTP, it's a matter of double-clicking a program icon.) Working with forms and other interactive features, however, can quickly get pretty hairy.

The Internet Server Cookbook has step-by-step instructions for setting up a server using MacHTTP. (This was written for use by elementary school classrooms, more and more of which are appearing on the Net.)

HTML Authoring

Unless you want to serve up only boring plain text documents, you need to learn something about HTML (HyperText Markup Language), the language for writing WWW pages. One of the best ways to start is to find a page you like, save the source code as an HTML file, and edit it to include your own information.

You'll find a lot of information on HTML available on line. Here are some places to look:


The Future

How might the Web develop in the future?


David Eck