Crystaltech web hosting - Appendix I Introduction to HyperText Markup Language 4:

Appendix I Introduction to HyperText Markup Language 4: Part 1 1385 40 41 Fig. I.6 Fig. I.Fig.Fi I.6g. I.66Using images as link anchors. (Part 2 of 2.) Fig. I. We see an image hyperlink in lines 15 17 Links Page
Here we use the aelement and the imgelement. The anchor works the same way as when it surrounds text; the image becomes an active hyperlink to a location somewhere on the Internet, indicated by the hrefattribute inside the tag. Remember to close the anchor element when you want the hyperlink to end. If you direct your attention to the srcattribute of the imgelement, src = “buttons/links.jpg” you will see that it is not in the same form as that of the image in the previous example. This is because the image we are using here, about.jpg, resides in a subdirectory called buttons, which is in the main directory for our site. We have done this so that we can keep all our button graphics in the same place, making them easier to find and edit. You can always refer to files in different directories simply by putting the directory name in the correct format in the srcattribute. If, for example, there was a directory inside the buttonsdirectory called images, and we wanted to put a graphic from that directory onto our page, we would just have to make the source attribute reflect the location of the image: src=”buttons/images/filename”.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision
J2ee Web Hosting services.

Leave a Reply