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
Providing Hints for Search Engines
Fact: There is absolutely nothing you can do to guarantee that your site will appear in the top 10 search results for a particular word or phrase in any major search engine (short of buying ad space from the search site, that is). After all, if there were, why couldn't everyone else who wants to be number 1 on the list do it, too? What you can do is avoid being last on the list and give yourself as good a chance as anyone else of being first.
Each search engine uses a slightly different method for determining which pages are likely to be most relevant and should therefore be sorted to the top of a search result list. You don't need to get too hung up about the differences, though, because they all use some combination of the same basic criteria. The following list includes almost everything any search engine considers when trying to evaluate which pages best match one or more keywords. The first three of these criteria are used by every major search engine, and all of them also use at least one or two of the other criteria.
- Do the keywords appear in the <title> tag of the page?
- Do the keywords appear in the first few lines of the page?
- How many times do the keywords appear in the entire page?
- Do the keywords appear in a <meta /> tag in the page?
- How many other pages in my database link to the page?
- How many times have people chosen this page from a previous search list result?
- Is the page rated highly in a human-generated directory?
Clearly, the most important thing you can do to improve your position is to consider what word combinations your intended audience is most likely to enter. I'd recommend that you not concern yourself with common single-word searches; the lists they generate are usually so long that trying to make it to the top is like playing the lottery. Focus instead on uncommon words and two- or three-word combinations that are most likely to indicate relevance to your topic. Make sure those terms and phrases occur several times on your page, and be certain to put the most important ones in the <title> tag and the first heading or introductory paragraph.
Of all the search engine evaluation criteria just listed, the use of <meta /> tags is probably the most poorly understood. Some people rave about <meta /> tags as if using them could instantly move you to the top of every search list. Other people dismiss <meta /> tags as ineffective and useless. Neither of these extremes is true.
A <meta /> tag is a general-purpose tag you can put in the <head> portion of any document to specify some information about the page that doesn't belong in the <body> text. Most major search engines allow you to use <meta /> tags to give them a short description of your page and some keywords to identify what your page is about. For example, your automatic cockroach flattener order form might include the following two tags:
<meta name="description" content="Order form for the SuperSquish cockroach flattener." /> <meta name="keywords" content="cockroach, roaches, kill, squish, supersquish" />
The first of these tags ensures that the search engine has an accurate description of your page to present on its search results list. The second slightly increases your page's ranking on the list whenever any of your specified keywords are included in a search query.
You should always include <meta /> tags with name="description" and name="keywords" attributes in any page that you request a search engine to index. Doing so may not have a dramatic effect on your position in search lists, and not all search engines look for <meta /> tags, but it can only help.
To give you a concrete example of how to improve search engine results, consider the page in Figures 23.1 and 23.2. This page should be fairly easy to find since it deals with a specific topic and includes several occurrences of some uncommon technical terms for which people interested in this subject would be likely to search. However, there are several things you could do to improve the chances of this page appearing high on a search engine results list.
Figure 23.1 There's nothing wrong with this page, but it presents some problems to people who might try to find it from an Internet search site.
Figure 23.2 The first part of the page in Figure 23.1, as it appears in a Web browser.
The contents of the page in Figures 23.3 and 23.4 look to a human being almost the same as the page in Figures 23.1 and 23.2. To search robots and search engines, however, these two pages appear quite different. The following list summarizes the changes and explains why I made each modification:
Figure 23.3 This page will be easier for people interested in fractals and chaos to find than the page in Figure 23.1.
Figure 23.4 The first part of the page in Figure 23.3, as it appears in a Web browser.
- I added some important search terms to the <title> tag and the first heading on the page. The original page didn't include the word fractal in the first heading—a key position.
- I added <meta /> tags to assist some search engines with a description and keywords.
- I added an alt attribute to the first <img /> tag. Not all search engines read and index alt text, but some do.
- I took out the quotation marks around technical terms (such as "fractal" and "iterated") because some search engines consider "fractal" to be a different word than fractal. I could have used the HTML character entity " to make the quotation marks, in which case the search robot would have disregarded them, but I chose instead to simply italicize the words.
- I added the keyword fractal twice to the text in the order form box. I also rearranged the table so this box didn't appear in the HTML code before the <h1> heading or the main body text. Since search sites give special importance to words occurring early in the HTML document, it's important not to put table columns (or <script> or <style> tags) before the text containing your most important search words.
It is impossible to quantify how much more frequently people searching for information on fractals and chaos were able to find the page in Figure 23.3 versus the page in Figure 23.1, but it's a sure bet that none of the changes could do anything but improve the page's visibility to search engines. As is often the case, the improvements made for the benefit of the search spiders probably made the page's subject easier for humans to recognize and understand as well.
Loading Another Page Automatically | Next Section

Account Sign In
View your cart