Volc.html
, to a second page,
msh.html
, that described Mount St. Helens. Now in the
latter page, we want to add a button that when clicked will link a
reader back to the main lesson page.
The way doing to do this to put the HTML tags for inline images within the hypertext part of the anchor tag:
<a href="fileX.html"> <img src="graphic.gif"> Go to Document X</a>In your WWW page, this HTML code will display a graphic and the text
Go to Document X
both which act as hyperlinks;
clicking on either the text or the graphic will tell your WWW browser to go to
the HTML file fileX.html
. Note that the graphic alone
could be a hyperlink. In the World Wide Web, a "HyperGraphic" is surrounded by a
dark blue box so you know that it is "active".
Now we will create a button. First, you need to get a copy of this arrow button (img src=left.gif">. If you need assistance on saving graphics files, see the reference page on downloading. When you are ready, view and save the arrow GIF file.
You should now have a copy of the file somewhere on your computer. Next, add the HTML code to make the button work:
msh.html
in your text
editor.
<hr> <a href="volc.html"> <img src="arrow.gif"> Return to <i>Volcanoes!</i></a>
Note: The inline image tag (<img...>) is completely within the anchor between the > that marks the end of the URL and the </a> that marks the end of the hyperText. Also note how the <i> tag is used within the active hypertext to emphasize the title of the lesson. And finally, we have used the <hr> tag to put a hard rule or a line above the button graphic (see lesson 4).
"msh.html"
file.
We will now add a postage stamp image that links to a larger picture: If you would like, first preview the postage stamp GIF image and the Full size JPEG image.
First, you need to get a copy of two GIF files. If you need assistance on saving graphics files, see the reference page on downloading. When you are ready, save the postage stamp GIF image as a file called "stamp.gif" and the Full size JPEG image as a file called seisom.jpg
Next, create the postage stamp link in your main text file:
Volc.html
file in your text editor
This field seismometer measures earthquakes associated with subsurface volcanic forces and may help to predict future events. It sits on a plateau known as the "Volcanic Tableland" formed by a major eruption 600,000 years ago. <p> <a href="seismo.jpg"> <img src="stamp.gif"> -- Click to view full size image -- </a> <p> This seismometer measures earthquakes associated with subsurface volcanic forces.
Note: The inline image,stamp.gif
acts as a hyperLink to a larger image,seismo.jpg
. When a user clicks on the "postage stamp" or the text "Click to view full size image --", your WWW browser will display the larger image in an external window.
| Lesson Index | previous lesson "Named Anchors" | next lesson "Preformatted Text" |
The Internet Connection at MCLI is
Alan Levine--}
Comments to levine@maricopa.edu