SEO - HTML Blog - Tutorial

We will from time to time attempt to include information we have found to be useful as a guide to Search Engine Optimization, beginning with basic HTML principals.

An SEO HTML educational blog, intending to help teach and instruct on the relationship of good html code to SEO.

Thursday, December 21, 2006

A Note on Javascript

In the course of web design, it has become popular to include various javascript code snippets to perform various functions within a site; often they can be used for browser-compatibility checks, basic dynamic content, and to provide the most accurate and accessible webpage to a viewer based on pertinent data provided to the server. These scripts are often called inline from the HTML within a site; in the interest of bandwidth, it is a good idea to avoid this whenever possible.

Taking a javascript program and putting it into an external file, then calling this script in a webpage header instead of writing out the entire script inline, serves to cache the script instead of forcing the browser to reload it every time a page is reloaded, especially if every page on a site calls the same set of scripts.

If embedding is required, be very careful to properly bracket the script.

<script type="text/javascript" language="JavaScript"></script>

is the correct method of declaring an inline javascript snippet. Often, WYSIWYG code editors may mangle this declaration, often omitting type="text/javascript" entirely. This informal style is one of the most significant causes of erratic javascripts, and should be strictly avoided.

Archives

Mission Statement

In a world dominated by the internet, design and compatibility are crucial to a company's success. Care must be taken to properly and formally code a webpage, so it works across the board on a variety of systems, and is still fully compatible with the latest search and information management technologies. This weblog will teach designers the fundamentals of such coding, including the crucial need for proper validation, the methods in which one can create code which requires less debugging after the fact, and the methods in which Search Engine Optimization can be used to promote the stature of a company within a page of otherwise nondescript search results.