Ajax software
Free javascripts
↑
Main Page
Overall Architecture
Before diving into gory technical details, it is worth mentioning that there are certain architectural deci-
sions that are categorically problematic for any search engine optimization campaign. If upper manage-
ment, for example, demands a web site be entirely built in Flash, the search engine marketer will not
have much leg room to the end of achieving search engine friendliness.
Likewise, if business logic requires that user agents log in before they can see any content, it is easy
to anticipate the problems that will cause for search engine optimization. A spider will
not
log in, and
therefore see nothing except the login page.
Technically, you could employ cloaking to detect the presence of spiders and deliver the content to them
without requiring them to log in. However, this is an especially controversial use of an already contro-
versial technique, cloaking. See Chapter 11 for more details on cloaking.
Unless there are circumstances that impose contradictory restrictions, we would advise that the follow-
ing general guidelines be followed:
?
Do
not
require visitors to log in before they can view your content. A search engine spider
cannot fill out forms to create an account or log in!
?
Present copy as clear text, not images. Use an HTML/CSS-based design — do not use AJAX
or Flash pervasively.
?
Do
not
require visitors to support JavaScript for navigation to be functional.
The rest of this chapter details how to improve the search engine friendliness of a web site by example,
through the appropriate use of HTML, JavaScript, and Flash. It explores specific problems, and proposes
their solutions.
Search Engine–Friendly JavaScript
Search engines are designed to index content rather than execute application code. Therefore, Java
-
Script, when used the wrong way, can degrade a web site’s search engine friendliness. On the other
hand, JavaScript is not
categorically
problematic, and has its appropriate uses.
This section discusses JavaScript’s use in the context of the following:
?
Links
?
DHTML menus
?
Popups
?
Crawlable images and graphical text
120
Chapter 6: SE-Friendly HTML and JavaScript
c06.qxd:c06 10:55 120
Ajax software
Free javascripts
→