The way to do this is to put the HTML tags for inline images within the hypertext portion of the anchor tag:
<a href="fileX.html"> <img src="graphic.gif"> Go to Document X</a>In your web page, this HTML will display an inline image and the text Go to Document X. Both will act as hyperlinks; clicking on either the text or the picture will tell your web browser to go to the HTML file fileX.html. The image alone could be a hyperlink. In the World Wide Web, a "HyperGraphic" generally is surrounded by a colored box matching the color of hypertext on your web page, so you know that it is "active".
NOTE: Many browsers now can alter the color of hypertext and some pages have suppressed the display of the outline around HyperGraphic links. Generally, you can identify a hyperlink area on a web page by looking for a change in the cursor as it passes over a "hot" region. The cursor usually changes from an arrow to a hand when it passes over an active link.Now we will create a "hyper" graphic button. First, you need to get a copy of an arrow button from the Lesson 8e Image Download Center.From a design standpoint, we recommend that if you use pictures to act as hyperlinks that you offer also a text link or use the ALT= attribute in the <IMG...> tag in case the viewer has turned off the loading of images.
You should now have a copy of the image file somewhere on your computer (You should move it to the pictures folder/directory in your workarea).
Next, add the HTML to make the button work:
<hr> <a href="index.html#usa"> <img src="../pictures/left.gif"> Return to <i>Volcano Web</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 (for more on this tag see lesson 4).
First, you need to get a copy of the two image files from the Lesson 8e Image Download Center. (These files should be stored in your pictures folder/directory of your workarea).
Next, create the postage stamp link in your main text file:
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="../pictures/seismo.jpg"> <img src="../pictures/stamp.gif"> -- [View the full size image] -- </a> <p> This seismometer measures earthquakes associated with subsurface volcanic forces.
The inline image, stamp.gif acts as a hyperLink to a larger image, seismo.jpg. When a user clicks on either the "postage stamp" or the text "View the full size image --", your web browser will display the larger image in an external window or in a blank page.
then it usually means the HTML does not match the file listed in the <img> tag or that the image is not in a GIF or JPEG format.
The Internet Connection at MCLI is
Alan Levine --}
Comments to levine@maricopa.edu
URL: http://www.mcli.dist.maricopa.edu/tut/tut8e.html