Images and Tables


Contents

Images

One of the more obvious features of Internet pages is that they are multimedia, containing not just text, but other kinds of material such as sounds and images.

Warning: Some files (e.g. ) are very small and do not take long to load. Beware of huge images which look wonderful but take ages to load. They just put people off!

In order to incorporate images into the web, we normally

Creating Local Directory

Within your chosen local directory, create a subdirectory called "images" as follows

Finding Images

In order to include an image in a hypertext, it is first necessary to know have the URL of an image file (this will usually have the suffix ".gif" or ".jpg"). Extensive image resources are available on the Web. Here are some starting points

Storing Images

We are now in a position to create a page containing images using Composer.

Referring to Images with Composer

The image now appears on the web page underneath the cursor. You can now manipulate the image by If you want to save the file just use the file menu and save it somewhere in your "home" directory.

Tables

How to Create Tables

The easiest way top create a table is by using a fixed-width font. The problem with tables written in this way is that they are very sensitive to changes in font, contents etc.

Inserting a Table Structure

A more robust and flexible kind of table can be produced using the built in "table" structure. Now that the table is there, you can go about filling it. Put the contents you want into the cells you want. Within cells, anything goes. You might wish to try You can of course cut and paste from other parts of the page if you wish.

Inserting Rows or Columns

To add an extra row or column:

Changing the Width of a Table

Selecting and Deleting Tables

Setting Table Properties

More About Tables

More about tables is to be found in Netscape's built in help feature.

Tables and Images Together

One extremely useful feature of tables is that they provide a way of controlling exactly how items will relate to each other on the page. A simple example of this is this customised bullet list

Another example is the following navigation bar.

This consists of a table whose cells contain links to arbitrary internet resources. Unlike the links we have seen so far, the content of each link is an image, not text.

Exercises

  1. Create a table representing a page in a week-per-page diary.

  2. Modify your home page to include a customised bullet list as shown above.

  3. Finally, reproduce the navigation bar above and place it inside a file ("navbar.html". I suggest that you create a special directory within your home directory for items like this. One way to make the item is as follows:

[Fri Jan 28 12:21:41 2000]