HTML Homework Tipsheet
Home Up Instructors Objectives Grading Teaching Assistant Term Project/Paper HW Policy New Link Bar

Home
Up
Instructors
Objectives
Grading
Teaching Assistant
Term Project/Paper
HW Policy
New Link Bar

Horizontal lines can be added by selecting Horizontal Line from the Insert menu.  You can edit the properties of the line by double clicking on it.


LINKS

You can create links by selecting the desired text and selecting the Link tool on the tool bar.  Then enter the URL of the location that you want to link to.  Here is a link back to the Homework Hints page.  You can edit existing links in Netscape Composer by right clicking on them and selecting Link Properties.

You can create links to send mail.  This is done in the same way as adding other links, except you will need to enter mailto: and then the email address instead of a URL.  Here is an example of a link to Dr. Nelson's email:  mailto:jimn@byu.edu.

You can create links to different parts of the same page.  First you need to insert a target at the location of the page that you want to jump to.  This can be done by selecting the Target tool in the tool bar while your cursor is in the desired location.  A box will come up in which you can enter the name of the target.   Then you can link to this part of the page in the same manner as other links, except you will just need to select the name of the target in the dialog box instead of entering the URL.  The following links are to different headings within this page.

LISTS
INDENTING
INSERTING IMAGES
SAVING and PERMISSIONS

BACK TO THE TOP


LISTS

There are several different ways of making lists:

  1. Numbered lists can be made by selecting Format|List|Numbered

  2. They can also be made by selecting the Numbered list tool on the tool bar.

    • Bullet lists can be created by selecting the Bullet list tool on the tool bar.

    • They can also be created by selecting Format|List|Bulleted

  3. You can change the type of list or the bullet type by right clicking on a list and selecting Paragraph/List properties

BACK TO THE TOP


INDENTING

You can indent your paragraph by selecting the Increase Indent tool on the tool bar or by hitting CTRL =.  This will indent your entire paragraph.  You can use this on lists to make sub-lists.  This is shown in the LISTS section on number 2.

You can decrease the indenting on your paragraph by selecting the Decrease Indent tool on the tool bar or by hitting CTRL -.  This will decrease the indenting on your entire paragraph.

    Hitting the TAB key is equivalent to hitting the spacebar 4 times.   It will not indent the entire paragraph but will only insert 4 spaces from the location of the cursor when the TAB key was selected.

BACK TO THE TOP


INSERTING IMAGES

To insert an image in Netscape Composer, select the Image tool on the tool bar with your cursor in the desired location, then specify the name of the image.  It is easiest to have the image in the same location as your html document.  This way, you only need to enter the name of the image in the insert image dialog instead of the entire path.  You can edit the image properties by right clicking on the image and selecting Image Properties.  The following image shows a watershed and its elevations as delineated by WMS.

watershed.jpg (44324 bytes)

Images can also be links to other documents.  This is done by right clicking on the image and selecting Create Link Using Selected... or by selecting the image and then selecting the Link tool on the tool bar.

BACK TO THE TOP


SAVING and PERMISSIONS

You need to be careful when you are saving your web pages.  If your page has the wrong permissions, others will not be able to view your page.  If you are using the PC's to create your web pages, make sure that you save your document to the W drive.  This will set the permissions so that everyone can view it.  It is also possible to save to the J drive in the www directory, however if you do it this way, only you will be able to view it.  The same thing also applies to images that you use in your web pages.  They must be saved to the W drive for others to be able to view them.

If necessary, you can change the permissions of your files by using the chmod command.  Following is a procedure for using this command.

To Change Permissions:

On a PC:

  1. Open a DOS prompt

  2. Telnet to one of the UNIX machines.  This is done by typing telnet and then the name of the machine.  For example, if you wanted to telnet to elijah, then you would type telnet elijah.

  3. When the telnet window comes up it will prompt you for your username and password.   Enter them.

  4. You will now be in your UNIX workspace.  (This is equivalent to the J: drive on the PC's.)

  5. Change the directory to the location of your files.  For example, if the files that I wanted to change the permissions on were in the ce531 directory located in the www directory, I would type cd www/ce531 at the prompt.

  6. At this point you are ready to use the chmod command.  This is done by typing chmod, followed by the 3 digit number code for permissions, followed by the file name.  Each digit of the code represents the permissions for a certain group of people.  The first digit represents the owner (you).  The second digit represents the group (all of ce/caedm).  The third digit represents the world.  The following describes the meaning of each number.

    • 1 = permission to execute only

    • 2 = permission to write only

    • 3 = permission to write and execute

    • 4 = permission to read only

    • 5 = permission to read and execute

    • 6 = permission to read and write

    • 7 = permission to read, write, and execute

  7. If I wanted to change the permissions of a file named index.html so that I could read, write, and execute and everyone else could only read, then I would type chmod 744 index.html at the prompt.

On a UNIX machine:

  1. Open an Xterm or a Dtterm.

  2. Follow steps D through G above.

BACK TO THE TOP