Day 3 Exercise 8
Part 8.1. Copy an Image and insert it in a page
We're going to copy an image file from someone else's directory and insert it
into your home page.
- Log into the Network Server.
- Enter copy.
- At the File to copy prompt, type
/ahome/inwww/public/www-data/tshirt.gif
- At the File to copy to prompt, type
webspace/tshirt.gif
where webspace is the name of the shortcut to your web directory.
- Press Enter.
- Edit your web page by entering scan webspace,
where webspace is the shortcut to your web directory,
and pressing e and Enter next to your web
page name.
- At the bottom of the page (above the link to your home page), insert
<IMG SRC="tshirt.gif">
<BR>
- Press F3 to exit save the file.
- Use Netscape to view the page.
Part 8.2: Add an "ALT" attribute.
- Now view your page in LUnx, by selecting it in the SCAN display and
pressing Enter.
That "INLINE" statement isn't very informative, is it?
- Now, edit the file again.
- Inside the IMG tag, insert ALT="WWW Authoring T-shirt", so
the tag looks like this:
<IMG SRC="tshirt.gif" ALT="WWW Authoring T-shirt">
- Press F3 to save and exit.
- View your page in LUnx again.
Part 8.3: Insert an image without copying
You can put an image on your page without having it in your own directory, as
long as it's on the web. Remember to respect copyright!
- Open up your page to edit.
- We're going to put a link to an image that's in the class directory:
http://www.lehigh.edu/~inwww/work/seal.gif
So, you want to insert the tag:
<IMG SRC="http://www.lehigh.edu/~inwww/seminar/intro/seal.gif"
ALT="LU Info Provider">
- Save the file and view it in Netscape.
Part 8.4: Make an image into a link
Images can be part of links, just as text can. We're going to make that
Info Provider Seal into a link to the resources for information providers.
- Edit your page AGAIN.
- Put a link element around your seal.gif image tag, that points to the URL
/~www/this_server/info_provider.html.
- It should look like this:
<A HREF="/~www/this_server/info_provider.html">
<IMG SRC="http://www.lehigh.edu/~inwww/seminar/intro/seal.gif" ALT="LU Info
Provider">
</A>
- Save the file and view it in Netscape. Try the link.
End of Exercise.
JAH, 4 Oct 1996.