Previous Page TOC Index Next Page Home


10

World Wide Web

by Billy Barron

The World Wide Web (WWW) is growing at an explosive rate, and even we Internet gurus are having trouble keeping up with all the new developments. New WWW functions and interesting WWW pages are appearing on a daily basis. In May 1994, the traffic of the Web was in the top 10 protocols and had even surpassed Gopher. However, we gurus have developed some tricks in dealing with the problems of the explosive growth of the Web.

In this chapter, we will look at these tricks as well as other tricks. Other tricks involve faster ways to navigate the Web, designing Web pages, and finding out what resources are available.

This chapter also assumes that you, the reader, have acquired and installed a WWW client before reading. All known clients are documented in a file http://info.cern.ch/hypertext/WWW/Clients.html (this is a URL specification, which is discussed later in this chapter). However, you will be unlikely to look at this document without a client. Therefore, you would best start by asking a friend or associate to use their client and work up from there.

Locating Items in WWW

One of the largest problems with the WWW system as it stands today is that it is difficult to find resources, even for the WWW guru. While Veronica does a nice job of indexing Gopherspace, no direct equivalent exists for the Web that has the completeness of Veronica. However, this is because it is easier to index Gopherspace. Veronica can just get all of the Gopher menu and know what is there.

With the Web, however, an indexer has to download the text of every document. Then it has to see if the document is HTML. If so, the document must be parsed and interpreted to get titles and to see if it contains links to other documents. It is a very resource-intensive process.

The guru does have some tricks that can be used to find resources in the Web. None of them will guarantee to find a particular resource, but they do help greatly in the search. Before getting to the tricks, though, you need to have a firm grasp on some background information.

Understanding URLs

To be a guru of the Web, a solid understanding of Uniform Resource Locators (URLs) is an absolute must as a first step. Every item on the Internet has at least one URL that defines its location. By having the URL of an item, you should be able to find and access it, provided the resource is up and running and there are no security barriers in your way.

The official document on URLs is at

file://info.cern.ch/pub/www/doc/url-spec.txt

This is itself a URL, but it will be explained in a moment. It contains a very detailed specification of them. We will not discuss them in such depth, but we will cover the most common URLs that will cover almost any case you will run across while using the Internet. Also, a document called a "Beginner's Guide to URLs" is available at

http://www.ncsa.uiuc.edu/demoweb/url-primer.html

URLs are usually made up of a protocol type, an address, an optional port number, and a path. The protocol types are listed in Table WW.1. The address is the address the server runs on and can be specified as either a hostname or a numeric IP address. The port number is the number of IP port that the server is running on. If the server is running on the standard port for that protocol, the port number is unnecessary. If the server is running on a non-standard port, the port must be specified. For example, a HTTP (HyperText Transfer Protocol) server has a standard port number of 80, so the port does not need to be specified in the URL if the HTTP server is running at port 80. By the way, HTTP is the protocol that is used by Web clients and servers, so an HTTP server is a WWW server. The path is the path to the particular item the URL is referring to.

Protocol Type

Description

http

WWW server

gopher

Gopher server

ftp or file

FTP server

mailto

E-mail

telnet

Remote login

wais

Wide Area Information Server

The basic formats of a URL are

protocol://hostname:port/path

or

protocol://hostname/path

To best understand URLs, let's run through a few examples. http://www.utdallas.edu/ refers to the main WWW menu for the University of Texas at Dallas (UTD). First, we see the protocol is http, so we know it is a WWW server. Second, we see the node name is www.utdallas.edu. Since no port was specified, this resource uses the default HTTP port of 80. The path is just a simple /. However, sometimes you may see it referenced as http://www.utdallas.edu instead. The ending / is assumed if it is not there, so the two forms are equivalent.

My personal Web page can be found at http://www.utdallas.edu:80/acc/billy.html. The protocol and hostname remain the same as our previous example. The port number is specified as 80 here, though it is unnecessary, and the path is /acc/billy.html.

gopher://yaleinfo.yale.edu:7000/11/Libraries is a URL pointing at the Internet Library List at Yale University. The protocol is Gopher and the hostname is yaleinfo.yale.edu. The port is 7000 instead of the standard Gopher port of 70. The path is /11/Libraries. However, to really understand the paths for Gopher, you need to understand the Gopher protocol. The short of it is that the 11 is a type specifier and /Libraries is the Gopher path. The type specification 11 means that it is a Gopher menu.

ftp://ftp.utdallas.edu/pub/staff/billy/libguide/libraries.asia is a URL to a document covering the Internet Libraries in Asia. The protocol is FTP. The hostname is ftp.utdallas.edu and the path to the document is /pub/staff/billy/libguide/libraries.asia. In this case, it is anonymous FTP. Ways to specify userids and passwords exist, but they are rarely used.

telnet://dra.com is a URL to a telnet session to the host dra.com. There are ways to specify users and passwords with this URL too, but the use of this feature is rarely seen, so look in the URL documentation if you need to do this.

Another URL you may run across is mailto. For example, it might be used like mailto:billy@utdallas.edu. If it is selected by the user, an e-mail message will be sent to billy@utdallas.edu after you type it in. However, not all clients support this feature, so it should be used with care. It is documented in the page http://siva.cshl.org/email/index.html.

It is important to understand URLs because the Web is totally based on them. Without a firm understanding of them, becoming a guru of the Web is impossible—so take time to learn them if you don't understand them fully at this time. You will be seeing quite a few URLs.

In the future, there will also be Uniform Resource Names (URNs). A Uniform Resource Name will be like an ISBN number on a book. Each item (defined as having the same URN) can exist in several locations on the network. Each of these locations is defined by a URL, which is similar to a call number in a library.

Hotlists and Personal HTML Documents

Any Web explorer has run into the problem where a very interesting resource is found once, and then you can never find it again. It can be a most frustrating experience. The reason this happens more in the Web than Gopher or other systems is that hypertext, especially poorly written hypertext, tends to allow you to drift off on unrelated tangents. Eventually, you will find some places interesting, but you have no idea how you arrived there.

Currently, there are two solutions to the problem. The first is the use of the Hotlist or Bookmark feature of your Web client. When you find a resource that is very useful, you just save it to your hotlist. Then whenever you want to go back to this location, you can just pop up your hotlist and select the item.

The second method is to create your own Web document in HTML (HyperText Markup Language), which contains useful links. Obviously, this is quite a bit more work. However, the big advantage of it is that the Hotlist is just a sequential list of items. In your HTML document, you can have headers, notes, comments, and even pictures. You can also take it one step further and make a set of pages like this all linked together.

The one problem these solutions do not solve is the movement of items around the Web. Also, sometimes items totally vanish. Unfortunately, at this stage, even the guru doesn't have a good solution to the problem. However, being a guru, if you move a page of your own, you should leave a page at the old URL for a period of time, informing the users of the move.

Subject Hierarchies

Several different individuals or groups have pages that attempt to break access to WWW pages down by subject classifications. A Web guru needs to know about these to be able to find information fast. However, all of these classification systems are very incomplete. This is unlikely to change because nobody can keep up with the growth or even the sheer size of the Web.

These classification schemes can generally be divided up into two basic categories. The first is controlled by an individual or small group of people. These people look at pages around the Web and find useful pages and include them under a subject classification. These effects will always be incomplete because the authors can't possibly deal with the hundreds, if not thousands, of new Web pages that are being created every day.

The other category is a self-registration mode. Basically, the author provides the users of a page with a form. This form enables the user to enter a new page into the scheme and requires the user to enter information about the new page. Some even enable the user to create new subject headings. These systems tend to contain more pages written by WWW gurus and less by novices. None of the systems I have seen to date have a good security/verification system. There is the potential for abuse, where someone creates links to pages in the wrong category. Also, many of the pages that are included in such systems have little or no value to most people.

In any case, both types of systems are useful and should be looked at when trying to find information in the Web. I will provide a list in Table WW.2 of the currently available subject classification schemes. Over time, more will appear, so keep in mind that this list is probably not comprehensive by the time you read it. In addition, some of these schemes will eventually die off. However, for the guru, this is the nature of the game called Internet.

Name

URL

CERN - WWW by Subject

http://info.cern.ch/hypertext/DataSources/ bySubject/Overview.html

EINet Galaxy

http://galaxy.einet.net/galaxy.html

Joel's Hierarchical

http://www.cen.uiuc.edu/~jj9544/index.html

Mother-of-all-BBes

http://www.cs.colorado.edu/homes/mcbryan/public_html/bb/summary.html

NCSA Meta-Index

http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html

Netlink

http://honor.uc.wlu.edu:1020

Nova-Links

http://alpha.acast.nova.edu/start.html

Project DA-CLOD

http://schiller.wustl.edu/DACLOD/daclod

Yahoo

http://akebono.stanford.edu/~jerry/bin/yahoo

Organizational Hierarchies

In addition to the subject hierarchies, some sites provide a set of pages that break down the WWW by the types of organizations that have pages. For example, it might list Universities, Corporations, and Non-Profit Organizations. Then Corporations are often subdivided into subheirarchies like Accounting, Aerospace, and Chemicals.

The organizational hierarchies are useful when you are looking for a particular organization to find out about their services and/or products. Also, it is helpful when you are shopping for a particular type of service or product to be able to locate information about it on the Web.

Just like the subject classification schemes, the organizational hierarchies fall into the same two basic categories. A list of known organizational hierarchies follows (Table 18.3).

Name

URL

American Universities

http://www.clas.ufl.edu/CLAS/american-universities.html

Best Commercial Sites

http://wings.buffalo.edu/contest/awards/money.html

Commercial Services

http://tns-www.lcs.mit.edu/commerce.html

Community Colleges

gopher://gopher1.faytech.cc.nc.us/

Companies

http://www.cs.colorado.edu/homes/mcbryan/public_html/bb/09/summary.html

Computer Science Depts

http://www.cs.cmu.edu:8001/Web/People/anwar/cs-departments.html

Corporations

http://www-external.hal.com/pages/hops.html#CORP

Freenets

http://herald.usask.ca/~scottp/free.html

Government Agencies

http://www.cs.colorado.edu/homes/mcbryan/public_html/bb/11/summary.html

Museums

http://www-external.hal.com/pages/hops.html#MUSE

Organizations

http://www-external.hal.com/pages/hops.html#ORGS

Other Colleges

http://www.dartmouth.edu/Pages/otherSchools.html

Research Centers

http://www.cs.colorado.edu/homes/mcbryan/public_html/bb/10/summary.html

Universities and Schools

http://www-external.hal.com/pages/hops.html#UNIV

Geographical Hierarchies

Another scheme people are using to break down the Web is to list all the Web sites in a particular geographic location or region. This can be useful for several reasons. First, you might only need information about businesses or educational institutions in a specific geographical region. Or you might be planning a trip and need information about a city. You may also just need information from your own city such as building codes, events, or even a restaurant. The possibilities are endless.

You will find text based and graphical interfaces to geographical hierarchies (see Table WW.4). Of course, if you have a text based client, you cannot use the graphical interfaces that many Web pages have. Each has its merits and uses. Additionally, you will find that some geographical regions have good pages of this nature, and other regions are voids—you will be unable to locate any geographical scheme that documents the region in any depth.

Name

URL

Alberta

http://www.sal.ists.ca/services/w3_can/alta.html

British Columbia

http://www.sal.ists.ca/services/w3_can/sbc.html

Canada

http://www.sal.ists.ca/services/maps.html

Connecticut

http://www.cs.yale.edu/HTML/YALE/MAPS/connecticut.html

Delaware

http://www.udel.edu/delaware/map.html

Europe

http://www.eeb.ele.tue.nl/maps.html

Florida

http://www.cis.ufl.edu/home-page/fl-servers/

Indiana

http://www.music.indiana.edu/tourist/

Iowa

http://caesar.cs.uiowa.edu/iowa/

Kentucky

http://www.uky.edu/kentucky-network-services.html

Manitoba

http://www.sal.ists.ca/services/w3_can/man.html

Massachusetts

http://donald.phast.umass.edu/misc/mass.html

Mexico

http://info.pue.udlap.mx/www-mex-eng.html

Netlink

http://honor.uc.wlu.edu:1020/-ge

New Jersey

http://www.stevens-tech.edu/nj.html

New York

http://wings.buffalo.edu/world/nywww.html

North Carolina

http://sunsite.unc.edu/nc/nchome.html

Oregon

http://www.willamette.edu/~tjones/Oregonmap.html

Quebec

http://www.sal.ists.ca/services/w3_can/qc.html

Saskatchewan

http://www.sal.ists.ca/services/w3_can/sask.html

Southern Ontario

http://www.sal.ists.ca/services/w3_can/sont.html

Texas

http://www.quadralay.com/www/TexasInfoServers.html

Utah

http://wings.buffalo.edu/world/utahwww.html

World (from CERN)

http://info.cern.ch/hypertext/DataSources/WWW/Servers.html

World (from Colorado)

http://www.cs.colorado.edu/homes/mcbryan/public_html/bb/14/summary.html

New Web Sites

The WWW guru keeps abreast of the new pages that are popping up around the Web. The National Center for Supercomputer Applications (NCSA) provides a page that contains announcements of new pages. The page is called "What's New," and its URL is

http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/whats-new.html

Announcements of new sites can be sent to whats-new@ncsa.uiuc.edu.

However, many interesting new pages never make it into the NCSA list. Therefore, the guru who needs to know about more new sites and has time on his hands can always do additional exploring on his own.

Many sites keep their own "What's New" page, also. This kind of page, however, usually covers changes on only that one site instead of the whole Web. It is still useful, though, if you use that particular site frequently.

Indexes

All of the schemes we have been talking about are known as browsal schemes. You look at a page of choices and select some. However at times, it is even more useful to be able to search on a word and find pages that have that word in their title or in the page.

These indexes are generated in several different ways. Some use a person's global history file. Others are built from the Hotlists of a large number of people. With some, the users enter their own pages into the index. Some others use a Spider or Worm, which will be discussed later in this chapter, to capture the information. A handful of the available indexes can be found in Table 18.5.

Name

URL

ALIWEB

http://web.nexor.co.uk/aliwebsimple

COMMA Hotlist DB

http://www.cm.cf.ac.uk/htbin/AndrewW/Hotlist/hot_list_search.csh

EINet Galaxy Search

http://galaxy.einet.net/www/www.html

Infobot Hotlist

ftp://ftp.netcom.com/pub/ksedgwic/hotlist/hotlist.html

Joe's Global History

http://www.galcit.caltech.edu/~joe/cgi-bin/hstsrch-joe

Jumpstation

http://www.stir.ac.uk/jsbin/js

Nomad

http://www.rns.com/www_index/intro.html

NorthStar

http://comics.scs.unr.edu:7000/top.html

RBSE's URL Database

http://rbse.jsc.nasa.gov/eichmann/urlsearch.html

SIMON

http://web.elec.qmw.ac.uk:12121/server/search.html

SURANetGuide-All

wais://nic.sura.net:210/SURAnetGuide-All

W3 Search Engines

http://cui_www.unige.ch/meta-index.html

WebCrawler

http://www.biotech.washington.edu/WebCrawler/WebQuery.html

Your Own Home Page

Most WWW gurus have their own Home Page that describes themselves and has links off to items they find interesting in the Web. Gurus, therefore, must either learn HTML or find a program that can convert from their favorite format to HTML. A list of available HTML converter programs and editors can be found at the URL

http://info.cern.ch/hypertext/WWW/Tools/Filters.html

Note: BBEDIT (shareware) for the Macintosh also supports HTML extensions and is easy to use to create HTML documents. The shareware version is available on world.std.com in /ftp/pub/bbedit as well as on sumex-aim.stanford.edu in /info-mac/TextProcessing.

Even if a converter can be found, a guru may wish to learn HTML. An easy to learn introduction to HTML can be found in a document called "Beginner's Guide to HTML," which is available as

http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html

The official HTML specification can be found at

http://info.cern.ch/hypertext/WWW/MarkUp/MarkUp.html

Finally, there is a HTML Developer's Page that can be accessed at

http://oneworld.wa.com/htmldev/devpage/dev-page.html

After learning to use one of the HTML converters or learning HTML, creating your own home page should be fairly easy to do. Before designing your own page, however, you might want to look at the home pages of some other people on the Internet to get an idea of what some look like (see Table 18.6).

Name

URL of Home Pages

Aurelius Prochazka

http://www.galcit.caltech.edu/~joe/coolpage.html

Billy Barron

http://www.utdallas.edu/acc/billy.html

Brandon Plewe

http://wings.buffalo.edu/staff/plewe/home.html

CMU CS students

http://www.cs.cmu.edu:8001/web/personal.homes.html

Dave Brennan

http://www-external.hal.com/~brennan/index.html

Eriq Neale

http://lipsmac.acs.unt.edu/

Kevin Hughes

http://www.eit.com/people/kev.html

Meng Weng Wong

http://www.seas.upenn.edu/~mengwong/meng.html

Rob Hartill

http://www.cm.cf.ac.uk/People/Robert_Hartill.html

Tim Berners-Lee

http://info.cern.ch/hypertext/WWW/People/Berners-Lee-Bio.html

Various

http://www.cs.colorado.edu/homes/mcbryan/public_html/bb/58/summary.html

After looking at some of these home pages, you will hopefully notice the different design philosophies that people use. Some people include their pictures while others do not (likely because they do not want people to know what they look like or they do not have access to a scanner). Some people are very serious and include resumes, current projects, and other such things while others have made their page totally for fun. Others still, such as myself, combine the serious and the fun together.

Server Software

Many different Web server packages exist as listed in Table 18.7. The guru needs to look at the features of each package and then decide which is the best for him or her.

In fact, the guru may end up deciding that a server package is unnecessary because other alternatives exist. It is possible to serve up HTML documents from other types of Internet servers, such as anonymous FTP and Gopher. However, by doing this you lose some of the more advanced features that the server provides, such as image maps and CGI scripts, both of which will be discussed later in this chapter. Also, using FTP is less efficient, slower, and limits your security options in some cases.

If a WWW server package is needed, you will need to first pick a platform. It will generally be in your best interest to choose UNIX if possible, unless you do not have the ability to use it or there is an overriding reason why another platform suits you better. The UNIX servers are the most popular, almost always the most current, and tend to have good performance.

Software

Platform

URL

CERN HTTPD

UNIX

ftp://info.cern.ch/

CERN HTTPD

VMS

ftp://info.cern.ch/pub/www/src/www2161betavms.tar_Z

GN

UNIX

ftp://hopf.math.nwu.edu:70/9/gn2.11.tar.gz

HTTPS

Windows NT

ftp://emwac.ed.ac.uk/pub/https

MacHTTP

Mac

ftp://oac.hsc.uth.tmc.edu/public/mac/MacHTTP/machttp_beta.sit.hqx

NCSA HTTPD

UNIX, VMS

ftp://ftp.ncsa.uiuc.edu/pub/web

NCSA HTTPD

Windows

ftp://ftp.ncsa.uiuc.edu/Web/ncsa_httpd/contrib/winhttpd/whtp13p1.zip

Plexus

UNIX

ftp://austin.bsdi.com/plexus/2.2.1/dist/Plexus2.2.1.tar.Z

Region 6

VMS

http://kcgl1.eng.ohio-state.edu/www/http_server_13.tar

SerWeb

Windows

ftp://winftp.cica.indiana.edu/pub/pc/win3/winsock/serweb03.zip

SerWeb

Windows NT

ftp://emwac.ed.ac.uk/pub/serweb/serweb_i.zip

WEB4HAM

Windows

ftp://ftp.informatik.uni-hamburg.de/pub/net/winsock/web4ham.zip

Also, many gateways available for the various Web servers enable you to tie into other software or databases. These gateways are documented on the page

http://info.cern.ch/hypertext/WWW/Daemon/Gateways.html

In addition, you can write your own gateways using CGI (Common Gateway Interface), which we will discuss in a little bit.

There is always the choice of writing your own server. This should only be done when you have a particular reason for doing so. Information on writing servers can be found on the page

http://info.cern.ch/hypertext/WWW/Daemon/Overview.html

After your server is installed and it is getting usage, you may want to see how much and what kind of usage it is getting. First, you must turn on the logging function of your server if it has one. After that, you can either write your own programs for generating statistics or acquire a Web statistics package. Several packages are available and listed in Table WW.8.

Software

URL

getstats

ftp://ftp.eit.com/pub/web.software/getstats/

wusage

http://siva.cshl.org/wusage.html

wwwstat

ftp://liege.ics.uci.edu/pub/arcadia/wwwstat/

Page Design Issues

A well-known problem with hypertext systems, such as WWW, is that most people do not know how to write good hypertext documents. In general, the worse hypertext documents are those where the author uses graphics and different types of links just to show off his/her ability in using the technology.

While I will be the first to admit that I am not an expert at writing good hypertext documents, I have learned over time how to avoid some bad techniques. In addition, I have picked up some good techniques to use. I will show you them here because they should be known to gurus of WWW. Other suggestions can be found in the pages

http://info.cern.ch/hypertext/WWW/Provider/Style/Overview.html

and

http://www.willamette.edu/html-composition/strict-html.html

Lists versus Full-Text

Hopefully, when you were learning about HTML by reading "The Beginner's Guide to HTML," you noticed that HTML enables you to make lists of links as well as place links in the body of a paragraph. Both techniques are useful, but both can also be misused. Care must be taken to use them appropriately.

While WWW is much more flexible and powerful than a paper book, many of the good book writing techniques apply equally as well to hypertext as they do to books. First of all, books typically have a table of contents. A good collection of related HTML documents in the Web should also have the equivalent to a table of contents. Otherwise, it is difficult for the reader to grasp the structure of the document collection effectively. A table of contents can be easily developed using a list of links.

However, once you get past the overview level(s), such as the table of contents, and on to the actual guts of the material, adjustments need to be made. Lists of links should generally be abandoned to define structure. Instead, paragraphs with links at appropriate places is much more effective in most cases.

Number of Links

A common mistake by new HTML authors is to use too many links or not enough. In theory, it is possible to define every part of a document as being a link to other documents. However, the user of this document would find it useless and frustrating.

In a good hypertext document, the links only take the user to important associated topics and not to irrelevant ones. To put this another way, by specifying a link, the author is telling the reader what the important related topics are. By not specifying a link, the author is saying that the topic is not that important or that no additional information exists on that particular topic.

On the other end of the spectrum, if the document has too few links, the author limits the ability of the reader to find related information. In fact, if all documents are like this, there is no point in using a hypertext system such as the Web at all, because its major strength is being ignored. In this case, Gopher is probably a superior system to use because it is easier to implement.

There are no hard and fast rules as far as the number of links per paragraph. It is dependent on the content of the individual document. The best way to learn what is an appropriate number is to browse around the Web and find some good and bad examples to learn from. You will know when you are looking at a document with too few, too many, or just the right number of links.

Links Back

Most good hypertext pages have a link back to their "official" parent page at the end of the page. The reason is that readers may get to the page from any other page in the Web or from an index. Once there however, the reader may be interested in other documents in the same collection. If no link is provided, it is difficult to see the rest of the collection.

One example is that a link takes you to the page for the printer products by company XYZ. However, then you want to see other information about XYZ. It is very easy to do if a link taking you back to the parent page or XYZ's home page is available. Without the link, it requires some searching on the guru's part to find the parent page. For the novice, it is nearly impossible.

Inline Graphics

In a perfect world, readers would not take a noticeable performance hit when viewing HTML documents with inline graphics. However, at the current time, almost all readers notice a significant slowdown due to online graphics. Even for those with high speed connections (T1 or higher) to the Internet and fast workstations, the performance problems show up from time to time.

There are two cases where the performance problems are very bad. The first is a user who is using a SLIP/PPP connection to the Internet. The second is when a slow link exists between the user and the WWW server. One frequent case of this is when the reader and the server are on opposite sides of the Atlantic Ocean. In these cases, hopefully, the user has set up his client to not automatically download images. In addition, some client programs such as Lynx do not display the images because they are geared for ASCII terminals and, therefore, will be faster.

The author of an HTML document needs to take these problems into account. First, the author needs to decide whether his/her audience has fast network links and a reasonably fast computer. If they do, using inline graphics will make the page prettier and, if used appropriately, are easier to understand. On the other hand, if the users of a page have slow links, then inline graphics should be kept to a bare minimum. Otherwise, the response time will make the pages unusable. A frequently used and good technique is to shrink the images and include them as small inline images. Then allow the user to click on the inline images to get the full image.

For most of us though, we will have some users in both categories. At the present time, in most cases, it is better to err on the side of too few graphics than too many. Over the course of the next few years, this balance will change as computers and networks get faster so that it will be better on average to include more graphics.

A related note is that some people are using ASCII based clients or have the inline images turned off in their client. Therefore, overdependence on unnecessary graphics will disenfranchise these users. However, at these times though, graphics are critical to the presentation of certain material. When this occurs, by all means, use graphics.

Client Independence

The Web and HTML in particular are built around the idea of client independence and being format-free. If you look at HTML, you will find no markers to specify exact font sizes. Also, you will find no way to hardcode locations on the screen in the language. This was intentional in the design of the WWW system.

Users of the system will be on various machines. Some will be able to handle advanced graphics, while others will not be able to handle graphics at all. Some will have very large windows for their WWW clients while others will be limited to 24 rows and 80 columns. Therefore, any attempt on the part of the server or the author to specify more than the most general formatting options, such as bolding and a relative heading size, will run into difficulties.

It is a common mistake on the part of the novice HTML author to try to make his page look nice on a particular client package, usually Mosaic. However, this time is basically wasted because any of the work that goes into this will be useless on any other client. In fact, it is often the case that the more effort spent in customizing for the screen for one client the worse it will look on other clients.

Also, HTML authors need to be careful about checking to see what advanced features his audience's client package supports. For example, while forms are a very useful feature of the Web, many clients have yet to support it. Also, the image map functionality, which will be explained later in this chapter, only works on graphical clients and by definition cannot work on ASCII based client packages.

Finally, it is very important that the author consider what file formats his readers can process when selecting the file format of graphics, sound, and video. Almost all WWW client packages will call external programs to process this kind of data. However, it is always an unknown whether or not the reader has installed these external programs or not. For inline graphics, the client packages can only handle very few types of graphics files, such as GIF.

CGI Scripts

Many WWW servers support the ability of the server to call scripts. These scripts allow the Web guru to design custom Web functionality. For those familiar with Gopher and the go4gw system, CGI (Common Gateway Interface) serves similar purposes. Sometimes you may see references to another script system known as HTBIN. HTBIN is an older system than has been superseded by CGI. You should write any new scripts for the CGI interface specification and not HTBIN. Also, any HTBIN script should be upgraded to use CGI.

The method of implementing the CGI functionality is somewhat dependent on your server package. However, the programming interface that a CGI script uses remains the same with any server package that supports CGI. Therefore, once you have written a CGI script, it will work with any server that supports CGI—but you may have to spend some time figuring out how to best tie it into the server.

Writing a CGI script requires understanding something about the HTTP protocol. Therefore, you should read up on that first if you haven't already. After that, take a look at the page http://hoohoo.ncsa.uiuc.edu/cgi/, which describes CGI in detail.

Forms

Many of the newer Web clients support forms. Forms are a wonderful addition to the Web because they allow the user to give information back to the server besides just simple mouse clicks. Forms support text fields, password fields (the text does not show up on the screen), checkboxes, radio buttons, menus, reset buttons, and submit buttons. They are quite powerful and can replace almost any paper form. Unfortunately, at the present time not all Web clients can support forms, so care must be taken when using forms for a particular application.

For help on using forms, a good page exists at

http://nearnet.gnn.com/forms/help/form-help.html

A more formal description of HTML forms can be found in

http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/Docs/fill-out-forms/overview.html

Image Maps

One of the more advanced design features that can be used is known as image maps. The more commonly used term, especially among novices, is a clickable map. It enables you to design Web screens so that users can use your Web page as a GUI interface. Instead of a link being a text phrase or a whole image, it can be a part of a graphic image. Therefore, it is possible to have maps with different countries, click on a country, and then get a page on that country. However, it is important to remember that this is advanced functionality that is not available in all client packages and, therefore, some people will be unable to use it.

A tutorial on using image maps can be found at http://wintermute.ncsa.uiuc.edu:8080/map-tutorial/image-maps.html. This document only covers how to configure the maps for users of the NCSA HTTPD server. If you are using another type of server, you will have to look at the documentation of the server for additional instructions. Also, some examples are helpful in designing maps (see Table 18.9). In addition, many of the geographical organizational schemes use image maps and are good examples.

Name

URL

Europe

http://s700.uminho.pt/europa.html

Honolulu Community College

http://www.hcc.hawaii.edu/hccmap/hccmap.html

Icon Browser

http://www.di.unipi.it/iconbrowsers/icons.html

London Underground

http://web.cs.city.ac.uk/london/travel/underground/map?central

Museum of Paleontology

http://ucmp1.berkeley.edu/

Planet Earth Home Page

http://white.nosc.mil/pehp.html

SWISS2DPAGE Map Selection

http://expasy.hcuge.ch/htbin/map2

Syracuse University

http://www.syr.edu/

Univ Cal Berkeley

http://server.berkeley.edu/htbin/imagemap/campus

World Map

http://wings.buffalo.edu/world

Also, a couple of different map editing programs exist that can help speed the development of image maps along. mapedit is an X based editor from image maps that can be found at

http://sunsite.unc.edu/boutell/mapedit/mapedit.html

For the Macintosh, a product known as HyperMap is available. It can be found at

http://libertynet.upenn.edu/~gasser/projects/hypermap.html

Client Configuration

The more powerful WWW clients, such as Mosaic, contain many client configuration options. A guru will know the options available with his/her package. If the package does not support the particular option needed, the guru can locate a separate utility that will accomplish the function if necessary.

Performance

The Web can be slow at times. There are several ways that the guru can maximize his/her performance by using a few tricks.

First of all, if he/she is coming into the Internet via a slow speed modem connection, it is best if automatic inline imaging download is disabled (in Mosaic, this is the turn off image download option) except when absolutely necessary. The guru also disables this option when downloading a page from a server that is known to be slow or one that is far away (usually defined as across an ocean). The guru may sometimes disable this option when downloading a page with a large amount of inline graphics. Finally, the guru may just use this option anytime the graphics are unneeded and speed is of the essence.

Most Web servers are typically least busy between midnight and 6 a.m. using the server's local time. Also, the busy transatlantic links tend to be least used between about 7 p.m. and 4 a.m. Eastern Standard Time (EST). Additionally, any time on a weekend, servers and links are less used. A WWW guru may use these times to access slow servers or servers across slow links so that the server responsds faster, and his/her usage does not slow down other Internet users as much.

Mirroring Pages

Another trick that WWW gurus often use to improve reliability and performance is to mirror HTML pages locally. In other words, the guru uses a particular Web page or set of pages frequently. Instead of repeatedly connecting across the Internet to access the page, the guru will copy (mirror) the page(s) to his/her local Web server. Then the guru can use this copy of the page(s) and receive faster response. Also, this can help lessen the load on a busy remote Web server (like CERN or NCSA) and overloaded network links.

An important part of the mirror process is figuring out how often the mirrored page should be refreshed. For very volatile pages, once a day may be good, though the mirror itself should occur at night if possible. For pages that are infrequently updated, getting a new copy once a week is acceptable. It just depends on the situation. In general, though, I would say that the refresh time should be between one day and one month.

Several different packages and methods for mirroring are available. There are basically three different methods of mirroring. The most straight forward is mirroring a single page exactly like it is. Next, a page can be mirrored, but all of the relative URLs in it are converted to be absolute URLs. The benefit of this method is that the links on the page will continue to work in all cases, whereas sometimes with the straight forward copy, they do. Finally, a page can be mirrored recursively. In this method, when a page is mirrored, it is parsed to see what pages it references in the same directory structure. These pages are then also downloaded and parsed. This continues until no more pages in the directory structure can be found.

Three popular mirroring tools are w3get, htget, and the Web client Lynx. Lynx only supports straight forward mirroring. This function can be accessed by typing lynx -source URL > output-file. w3get performs only recursive mirroring. htget is a later version of a script originally known as hget. htget is the most powerful of the three tools mentioned here and supports all three types of mirroring. It can be found at

http://cui_www.unige.ch/ftp/PUBLIC/oscar/scripts/README.html

The htget syntax is very simple. For straightforward mirroring, just type htget URL. For converting to absolute format, it is htbin -abs URL. Finally, for recursive copying, use the command htbin -r URL.

Another alternative to mirroring is a caching Web server. In the cache system, the client first checks to see if the cache server has the document. If so, the cache server gives the document to the client at faster than normal speed because the cache server should be local. If not, the cache server will download the document to keep a copy for caching purposes.

An experimental caching server has been developed. At the time of this writing, it had not been publicly released. Hopefully, it will be in the near future. To acquire more information, look at the page

http://www.hensa.ac.uk/hensa.unix.html

In addition to mirroring, it is often a good idea to occasionally check to see if the links in your pages are still good. A package called "checkweb" is available for doing this. Unfortunately, it does not have a URL on the network from which you can download it. Instead, ask around or try to find a copy of the February 17, 1994 posting of it on the newsgroup comp.infosystems.www.

However, you should probably test suspected dead links more than once. It is often the case on the Web that a link will be dead for minutes or hours and then reappear. This is often due to network connectivity problems or the WWW server crashing.

Related Viewers

Most Web clients by default can render a small number of file types by themselves. For example, they all know how to render HTML. Most can render Gopher menus and FTP directories. Many can view small inline graphics. However, it is commonly known wisdom in the computer programming arena that no one package can do everything well. As it is, many people complain that Mosaic and some other Web clients do too much already, and you can see warts if you look closely for them. Therefore, all Web clients, including Mosaic, draw a line on what is directly included and what must be supported externally.

To deal with other types, most Web clients have the ability to call other utilities, often called viewers, to render types that the client itself cannot deal with. Therefore, with most clients, it is important for the guru to install a good set of viewers (see Table 18.10). For starters, viewers for graphic files, sound, and video are needed in addition to the client.

Viewers

URL

Quicktime for Unix

ftp://public.x.org/R5contrib/xanim264.tar.Z

Various Unix

ftp://ftp.ncsa.uiuc.edu/Web/Mosaic-viewers

Various Windows

ftp://ftp.ncsa.uiuc.edu/PC/Mosaic/viewers

Downloading Images/Icons

On occasion, the guru may see a picture, sound clip, movie, or icon that is particularly interesting. He/she might decide to make a local copy of this file. There are several ways to accomplish this, but first the guru must tackle the ethical issues. Often, these files are of copyrighted material. Remember that in many countries, including the U.S., a work is copyrighted until the author declares it is public domain. Even if the work is copyrighted, the author will often allow use of the work without charge if nicely asked.

If the guru is making a copy for his/her own personal use, it is usually safe in the U.S. at least to make a copy of the work under the Fair Use Doctrine. If the guru wants to use the file on his/her Web page or in another work, the guru needs to contact the author for permission. Unfortunately, most of these image files in the Web have not been accredited to an author. Therefore, it is often difficult to gain proper permission.

However, fortunately a few Icon libraries are available on the Web (see Table 18.11). The images available in these libraries should all be public domain and can probably be used in the design of your Web pages.

Name

URL

Anthony's Icon Library

http://www.cit.gu.edu.au/~anthony/icons/

General Icons

http://www.ncsa.uiuc.edu/General/Icons/

Gopher Icons

http://eitech.com/web/gopher.icons/gopher.html

Icon Browser

http://www.di.unipi.it/iconbrowsers/icons.html

Icon Leiste

http://www.cosy.sbg.ac.at/www-doku/iconbar.html

WWW Icons

http://bsdi.com/icons/

Downloading images and icons can be tricky. For images that are not inline, usually the easiest way is to tell your external viewer to save the image when it is displaying the image. However, not all external viewers are capable of doing this. When this fails, you can try to find an option in your client called something like "load to local disk." Enable it and then try to view the image. A dialog box asking you for a file name to save it under should appear. If your client does not have this option, look at using the software discussed in the mirroring section of this chapter to save the images.

Inline images are a little more difficult to deal with. The first way is to use the "load to local disk" option and then reload the page you are on. Alternatively, you can use the "view source" option in your client to find the URL of the inline image, and then use an external viewer as discussed above. If your external viewer cannot save, still use the "view source" option and then use mirroring software to pull down the inline image.

Spiders

Spiders, sometimes also known as robots, knowbots, or worms, are programs that transverse the Web in search of something. Some build indices of the Web. Others measure the growth of the Web, measure throughput and latency in the net, and do textual analysis. Spiders hold the possibility of doing all kinds of other useful analysis of the Web. However, they can also be a large resource drain on the network if not used properly.

Programming a Spider is a task only for a guru of the Web. Programming one requires knowledge of HTML and the HTTP protocol. Without accurate knowledge of both and careful debugging, many Spiders will put a strain on the Web, due to an infinite loop or downloading too many documents too quickly. Fortunately, Martijn Koster took on the task of defining what a good Spider should and should not do. This definition can be found at http://www.nexor.co.uk/mak/doc/robots/robots.html. Any new Spider needs to follow these rules to be Web-friendly.

If you as a guru are thinking about writing a Spider, please look at the other Spiders first to make sure nobody else is doing the same thing. The Web is huge, and the fewer unnecessary Spiders running the better.

If you are a server administrator and do not want Spiders transversing your Web server, a method for telling a Spider to leave you alone exists and is documented on

http://www.nexor.co.uk/mak/doc/robots/norobots.html

It is up to the individual robot to support this function. Some do and some do not. If it does not, try to find the Spider author and ask him to stop running his Spider against your server. Finally, if absolutely necessary, you can tell your HTTP daemon to not allow connections from the Spider site.

Keeping Current with Future Development

It is critical that the guru remember that the Web is in its infancy, and that to stay a guru requires a significant investment in time to keep up with all the new developments. Much discussion is underway about important topics like a new version of HTML called HTML+.

HTML+ is documented in

ftp://ds.internic.net/internet-drafts/draft-raggett-www-html00.txt

HTML+ will be a superset of HTML so that all current HTML documents will continue to be valid. HTML+ will probably have better table support and add in a few formatting features, such as right-justification. These discussions will lead to major changes in the WWW system over the next few years.

Many exciting rumors about the future of Web clients and servers abound. As I was writing, an enhanced commercial version of Mosaic was released. From various commercial client vendors, there is talk of adding security features such as authentication and encryption. Others are talking about more business oriented versions of the Web.

The Web is discussed on the USENET newsgroups comp.infosystems.www.misc, comp.infosystems.www.providers, and comp.infosystems.www.users. In addition, monitoring the group comp.infosystems.announce is useful because announcements of new software and sites are posted regularly. These sites include Web sites as well as sites using other protocols such as Gopher and WAIS.

The Web also contains many resources for WWW developers that were not covered in this chapter. A good starting point for finding out about these resources is a system known as CyberWeb. The CyberWeb can be accessed at

http://nyx10.cs.du.edu:8001/~arichmon/Web.html

Previous Page TOC Index Next Page Home