1416 Introduction to HyperText Markup Language (Web site development) 4: Part

1416 Introduction to HyperText Markup Language 4: Part 2 Appendix J Go to Favorite Features shows a hyperlink with the anchor features as its target. Selecting this hyperlink in a visual browser would scroll the browser window to the features anchor (line 16). Examples of this occur in Fig. J.6, which shows two different screen captures from the same page, each at a different anchor. You can also link to an anchor in another page, using the URL of that location (using the format href=”page.html#name”). Look-and-Feel Observation J.2 Internal hyperlinks are most useful in large HTML files with lots of information. You can link to various points on the page to save the user from having to scroll down and find a specific location. J.7 Creating and Using Image Maps We have seen that images can be used as links to other places on your site or elsewhere on the Internet. We now discuss how to create image maps (Fig. J.7), which allow you to designate certain sections of the image as hotspots and then use these hotspots as links. All elements of an image map are contained inside the tags. The required attribute for the map element is name(line 18): As we will see, this attribute is needed for referencing purposes. A hotspot on the image is designated with the area element. Every area element has the following attributes: hrefsets the target for the link on that spot, shape and coords set the characteristics of the area and altfunctions just as it does in the imgelement. 1 3 4 5 6 7 8 9 10 11 12 13 14

15 16 18 19 20 21 22 Fig. J.7 Fig. J.Fig..Fi J7g. J.7J.7Picture with links anchored to an image map. (Part 1 of 2.) Fig.
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Leave a Reply