Writing HTML | About | FAQ | Alumni | Tags | Index | back | next |

14. Lumping vs Splitting

You made a single home page! Big deal! Transform an ordinary long-scrolling "page" into a logically connected "web" of information.

Objectives

After this lesson you will be able to:

Lesson

Note: If you do not have the working documents from the previous lessons, download a copy now.

Are you a lumper or a splitter? Neither? Both?

For organizing information, sometimes its better to "lump" things together; other times it is better to "split" them apart. Scrolling through long web pages is often tedious. Long, single web pages take longer to load over networks than a series of smaller pages.

In many cases, you can identify logical points to "split" information into multiple web-pages. However, there is no magical formula, and opinions will vary. You should strike a balance between pages with breaks that parallel the content yet avoid forcing the reader to click through too many screens of options and sub-options before getting to the desired information. It also becomes important to build in hypertext links that help the reader navigate your information web as well as providing visual clues about their location within the web.

So far we have been built one web page with a link to a shorter page. In lesson 8d we created a list of links that works as a table of contents by connecting them to named anchors for the different sections of the Volcano Web lesson. These same divisions might be sensible breakpoints for splitting the single long page into sub-pages.

Up to know we have created a directory called volc that contains our two HTML files (index.htm, the lesson, and msh.htm, a second web page). We also have a second directory called pictures that contains our graphic image files.

map of new lesson We will now split the single Volcano Web file into a series of web pages, linked as shown in this diagram. the entry point is a main index/cover page, index.htm that has links that point to each of the other parts of our lesson:

Each part of the lesson will link back to the index as well as to the preceding and following pages. Also note the two-way link between usa.htm and msh.htm

NOTE:To complete this lesson, we will have to create quite a few new files and do a fair amount of copy/pasting from the files you have been working on. Be sure that you are comfortable jumping around between the different application and document windows on your computer.

The first thing we will do is create the new index.htm file, which will be the "cover" page for our Volcano Web lesson:

  1. First make a copy of the index.htm file you have been working on and name it old.htm or something like that.
  2. Now open the copy of the index.htm file in your text editor. This is our lesson that we have been working on to this point.
  3. We are going to use the picture, the opening text/quotation, and the table of contents as the content for our title page. To do this, we will remove the sections that will be "split" out to other web pages.

    Delete the sections from Introduction to References, that is everything between:

      <hr>
      <h2><A NAME="intro">Introduction</A></h2>
      A <b>volcano</b> is a location where magma, 
      or hot melted rock from within a planet, reaches the surface. 
       :
    and
       :
      <dt>Lipman, P.W. and Mullineaux (eds). (1981)
      <dd><I>The 1980 Eruptions of Mount St. Helens, Washington.</I>
      U.S. Geological Survey Professional Paper 1250.
      </dl>
    
    You may want to compare your HTML file to an example of how it should look at this point.

  4. Now look at the section labeled "In this Lesson..." In our previous work, we used hypertext links to jump to a named anchor (i.e. <a name="term">..</a>) in the same document (see lesson 8a). Now we will modify these anchor links so that each jumps to another web page (which we will create below).

    Find the portion that reads:

    <B>In this Lesson...</B>
      <ul><i>
      <li><A HREF="#intro">Introduction</A>
      <li><A HREF="#term">Volcano Terminology</A>
      <li><A HREF="#usa">Volcanic Places in the USA</A>
      <li><A HREF="#mars">Volcanic Places on Mars</A>
      <li><A HREF="#project">Research Project</A></i>
      </ul>
    and edit it to read:
    <B>In this Lesson...</B>
      <ul><i>
      <li><A HREF="intro.htm">Introduction</A>
      <li><A HREF="term.htm">Volcano Terminology</A>
      <li><A HREF="usa.htm">Volcanic Places in the USA</A>
      <li><A HREF="mars.htm">Volcanic Places on Mars</A>
      <li><A HREF="proj.htm">Research Project</A></i>
      </ul>
    Compare your HTML file to an example of how it should look at this point.
    NOTE: Be sure you understand the different between a link written:
      <a href="#quest">go to questions</a>
    and another one written:
      <a href="quest.htm">go to questions</a>

The next thing we will have to do is create the individual files for the other parts of our lesson. It will be easier if we first create a template file that we can modify for each of the different pages.
  1. In your text editor, create a new file called temp.htm
  2. In this file, put the following HTML (If you wish, you can copy an example template file):
    HTML Notes
    <html>
    <head>
    <title>XXXXXXXX</title> 
    </head>
    <body>
    HEAD: In the head portion of each document, XXXXXXXX is the name of that section
    <H5>Volcano Web / 
    <A HREF="index.htm">Index</A> / 
    <A HREF="xxxx.htm">back</A> / 
    <A HREF="xxxx.htm">next</A></H5>
    NAVIGATION: At the top of each page we use a small header (h=5) to create navigation links. Index points back to the main cover page. next and back link to the following and preceding pages. You will have to fill in the appropriate file name in for xxxx.htm. Notice how this provides a common visual clue to each of our web pages.
    <h2>XXXXXXXX</h2>
       :
       :
       :
    HEADER: Use a header=2 to put a title for that page.
    <hr>
    <ADDRESS>
    <b><A HREF="index.htm">
    Writing HTML</A> : 
    XXXXXXXX </b><p>
    created by Lorrie Lava, 
    <A HREF="mailto:lava@pele.bigu.edu">
    lava@pele.bigu.edu</A> <br>
    Volcanic Studies, 
    <A HREF="http://www.bigu.edu/">
    Big University</A><p>
    <TT>last modified: April 1, 1995</TT>
    </ADDRESS>
    <p>
    ADDRESS FOOTER: Note how the footer is now set up to indicate the name of the main web page (with a link back to it) as well as a line of text that indicates the name of the current section XXXXXXXX. Placing the name of the page here adds another important visual clue to the location of this page in the structure of the web we are creating.
    <tt>URL: 
    http://www.bigu.edu/web/xxxxxxxx.htm
    </tt>
    <p
    <body>
    </html>
    
    URL: Be sure to modify the line that indicates the document's URL to reflect its file name xxxxxxxx.htm

  3. Now you should make 5 copies of the template file and make the appropriate changes to the template:
    File Name Section Notes
    intro.htm Introduction As this is the first section, remove the line from the navigation section: <A HREF="xxxx.htm">back</A>
    term.htm Volcano Terminology
    usa.htm Volcanic Places in the USA
    mars.htm Volcanic Places on Mars
    proj.htm Research Project As this is the last section, remove the line from the navigation section: <A HREF="xxxx.htm">next</A>

  4. Now, open the old index.htm file (that we re-named old.htm) in your text editor. For each of the new files, you will have to copy the HTML that was underneath that section's <h2>...</h2> header and paste it into the new files you created in the previous step. Note that Volcanic Places in the US and Research Projects both include sub-sections that have <h3>...</h3> headers.
  5. Finally, you will have to modify the link in msh.htm file. Previously, it returned to a named anchor in the main lesson (the section for Volcanic Places in the US) where now it should link to the usa.htm file. Open msh.htm file in your text editor and edit the line to read:
      <a href="usa.htm"> 
      <img src="../pictures/left.gif" alt="** "> 
      Return to
      <i>Volcano Web</i></a>
    Just to be consistent, you should also make to footer look like:
    <HR>
    <ADDRESS>
    <B><A HREF="index.htm">
    Volcano Web</A> : <A HREF="usa.htm">
    Volcanic Places in the USA</A> : 
    Mount St. Helens</B> <p>
    
    created by Lorrie Lava, 
    <A HREF="mailto:lava@pele.bigu.edu">
    lava@pele.bigu.edu</A><br>
    Volcanic Studies, 
    <A HREF="http://www.bigu.edu/">
    Big University</A><p>
    <TT>last modified: April 1, 1995</TT>
    </ADDRESS>
    <p>
    <tt>URL: http://www.bigu.edu/web/msh.htm</tt>
    
    <body>
    </html>

Check Your Work

Compare your web pages with this sample of how it should appear. If your pages are different than the sample or the hypertext links do not work correctly, review the text you entered in the text editor. In this lesson we created quite a few files and it is very easy to make typographical errors.

Review

Review topics for this lesson:
  1. What are some advantages of short, multiple web pages over a single,long web page?
  2. What would have happened if we did not modify the hypertext link in the msh.htm file?
  3. What were the navigational features we added to our lesson?

More Information

Stylistically, your web pages are more readable if the hypertext links are integrated into the text of the content. This becomes more important as you create more web pages that have hypertext to link them together. Compare:
In the spring of 1980, most people living in the vicinity of Mount St. Helens took heed to the scientists warning about an impending volcanic eruption. However, several were insistent on staying in their homes and sadly perished in the May 18 event. In that same year, measured increases in seismic recording devices caused scientists to warn of a possible event in Long Valley, California, and order a large evacuation of the Mammoth resort area. However, no such event occurred, and residents were angrily resentful for what they perceived as a false warning that caused great economic loss.
to
In the spring of 1980, most people living in the vicinity of Mount St. Helens took heed to the scientists warning about an impending volcanic eruption. (Click here to see a picture of Mount St. Helens) However, several were insistent on staying in their homes and sadly perished in the May 18 event. In that same year, measured increases in seismic recording devices caused scientists to warn of a possible event in Long Valley, California, and order a large evacuation of the Mammoth resort area. (Click here to see a seismometer) However, no such event occurred, and residents were angrily resentful for what they perceived as a false warning that caused great economic loss.
The "Click here..." lines not only disrupt the flow of the text, but the link text "here" is not related to the intended item. As a suggestion, avoid writing any lines like "click here to return to the home page". Rather write a clean link, i.e. <a href="home.htm">Home Page</a> - the clicking is inherent in the use of the web browser.

Independent Practice

Take a look at the web page you are developing. Is it getting very long? Is there a logical division where you could "split" the page? Set up a cover/page index to your web pages and design appropriate links for navigating between them. Then design a template for for your "sub-pages."

Now ask some friends/colleagues to view your pages. Do they prefer the "split" pages or the "lumped" one? Could they easily negotiate their way through your information?


Coming Next....

NOW we get to the fancier stuff with advanced HTML... Fasten your seat-belts!
GO TO.... | Lesson Index | back: "Blockquotes" | next: "Standard and Enhanced HTML" |

Writing HTML Lesson 14: Lumping vs Splitting
©1995 Maricopa Center for Learning and Instruction (MCLI)
Maricopa County Community College District, Arizona

The Internet Connection at MCLI is Alan Levine --}
Comments to levine@maricopa.edu

URL: http://www.mcli.dist.maricopa.edu/tut/tut14.htm