Sams Teach Yourself HTML 4 in 24 Hours
- Table of Contents
- Copyright
- About the Author
- Acknowledgments
- Tell Us What You Think!
- Put Your HTML Page Online Today
- I. Your First Web Page
- Hour 1. Understanding HTML and XML
- Hour 2. Create a Web Page Right Now
- Hour 3. Linking to Other Web Pages
- Hour 4. Publishing Your HTML Pages
- II. Web Page Text
- Hour 5. Text Alignment and Lists
- Hour 6. Text Formatting and Font Control
- Hour 7. Email Links and Links Within a Page
- Using Named Anchors
- Linking to a Specific Part of Another Page
- Linking Your Email Address into a Web Page
- Summary
- Q&A
- Workshop
- Hour 8. Creating HTML Forms
- III. Web Page Graphics
- Hour 9. Creating Your Own Web Page Graphics
- Hour 10. Putting Graphics on a Web Page
- Hour 11. Custom Backgrounds and Colors
- Hour 12. Creating Animated Graphics
- IV. Web Page Design
- Hour 13. Page Design and Layout
- Hour 14. Graphical Links and Imagemaps
- Hour 15. Advanced Layout with Tables
- Hour 16. Using Style Sheets
- V. Dynamic Web Pages
- Hour 17. Embedding Multimedia in Web Pages
- Hour 18. Interactive Pages with Applets and ActiveX
- Hour 19. Web Page Scripting for Non-Programmers
- Hour 20. Setting Pages in Motion with Dynamic HTML
- VI. Building a Web Site
- Hour 21. Multipage Layout with Frames
- Hour 22. Organizing and Managing a Web Site
- Hour 23. Helping People Find Your Web Pages
- Hour 24. Planning for the Future of HTML
- VII. Appendixes
- A. Readers' Most Frequently Asked Questions
- B. HTML Learning Resources on the Internet
- C. Complete HTML 4 Quick Reference
- D. HTML Character Entities
Linking to a Specific Part of Another Page
You can even link to a named anchor on another page by including the address or name of that page followed by # and the anchor name.
Figure 7.4 shows several examples, such as the following:
Figure 7.4 To link to a specific part of another page, put both the page address and anchor name in the <a href> tag.
<a href="sonnets.htm#131"> You're bossy, ugly and smelly, but I still love you.</a>
Clicking You're bossy, ugly and smelly, but I still love you, which is shown in Figure 7.5, brings up the page named sonnets.htm and goes directly to the point where <a name="131"></a> occurs on that page (see Figure 7.6). (The HTML for sonnets.htm is not listed here because it is quite long. It's just a bunch of sappy old sonnets with <a name> tags in front of each one.) Note that anchor names can be numbers, words, or any combination of letters and numbers. In this case, I used the sonnet number.
Figure 7.5 This page is listed in Figure 7.4. All the links on this page go to different parts of a separate page named sonnets.htm.
Figure 7.6 Clicking the bossy link in Figure 7.4 brings you directly to this part of the sonnets.htm page. HTML for this page isn't shown.
Linking Your Email Address into a Web Page | Next Section

Account Sign In
View your cart