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
- 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
Workshop
Quiz
- If you publish a page about puppy adoption, how could you help make sure the page can be found by people who enter puppy, dog, and/or adoption at all the major Internet search sites?
- Suppose you recently moved a page from http://mysite.com/oldplace/thepage.htm to http://mysite.com/newplace/thepage.htm, but you're not quite sure if you're going to keep it there yet. How would you automatically send people who try the old address to the new address, without any message telling them there was a change?
- What are three ways to make sure that people who save one of your pages on their hard drive can find your site online from it, even if they forget to add it to their Bookmarks or Favorites list?
Answers
-
First, make sure puppy, dog, and adoption all occur frequently on your main page (as they probably already do), and title your page something like Puppy Dog Adoption. While you're at it, put the following <meta /> tags in the <head> portion of the page:
<meta name="description" content="dog adoption information and services" /> <meta name="keywords" content="puppy, dog, adoption" />
Finally, put your page online and go to http://www.yahoo.com, http://www.hotbot.com, http://www.altavista.com, http://www.lycos.com, http://www.excite.com, and http://www.infoseek.com to fill out each of their page submission forms.
-
Put the following page at http://mysite.com/oldplace/thepage.htm:
<html><head><meta http-equiv="refresh" content="0; http://mysite.com/newplace/thepage.htm></head> </html>
To accommodate people using older browsers that don't support <meta>, it would be a good idea to also include the following just before the </html> tag:
<body><a href="http://mysite.com/newplace/thepage.htm"> Click here to get the page you're after.</a></body>
-
Include a link to the site, using the full Internet address, on every page. Here is an example:
The address of this page is: <a href="http://mysite.com/home.htm"> http://mysite.com/home.htm</a>
Use full Internet addresses in all links between your pages. Here is an example:
This is my home page. From here you can <a href="http://mysite.com/personal.htm"> find out about my exciting personal life</a>, or <a href="http://mysite.com/work.htm"> find out about my boring work life</a>.
Use the <base /> tag to specify the full Internet address of a page. Here is an example:
<head><base href="http://mysite.com/home.htm" /> <title>My Home Page</title></head>
Exercises
- Can you think of some fun and useful ways to employ automatically changing pages (with the <meta http-equiv="refresh"> tag)? I bet you can.
- Now that you've made it through all the HTML tutorials in this book, you probably have some fantastic Web pages online. Get on over to those search sites and let the world know you exist!
Hour 24. Planning for the Future of HTML | Next Section

Account Sign In
View your cart