Do you have lots of JavaScript coding in the header section of your web pages? Do you re-list your CSS styles at the top of every page? Do you have JavaScript coding spread throughout your web pages?
If you answered yes to any of these questions your site may be driving away search engine spiders and losing search engine position ranking.
As you can imagine search engine spiders have a lot of pages to get through on the web when they are indexing sites. To improve their speed and efficiency search engines program their spiders to give up easily if they have problems with a page or if they have to wade through too much code to find the relevant content.
This is one of the reasons why it is so important to put your keywords as close to the top of the page as possible. This way the search bot will see the keywords before giving up and moving on to the next page.
But what do you do if you have lots of JavaScript code or CSS styles pushing your keywords down the page in your coding? You need to find a way to cut down on all that code that gets in the way of the search engines properly indexing your page.
We do this by moving the JavaScript and CSS styles off the page and into external files. This is a fairly easy and straight forward process and can have the added benefit of making your pages load faster as well, which the search engines also like.
In many ways CSS styles and JavaScript work in a similar fashion. You set up functions in a script or formatting in a style sheet section, and then refer to that section in your html code. For instance if you have a JavaScript that displays a clock on your page you would have the JavaScript functions for the clock listed in your head section, then you would simply call that function from the place on the page where the clock would be displayed.
Similarly with CSS you set up your styles ahead of time in a Styles section of the page head, then you simply refer to the styles as needed in your html coding. One benefit of this is that it cuts down dramatically on the amount of formatting code needed when compared to using Font tags.
If you want to use the same JavaScript or CSS styles on a different page you could copy all that code onto the new page. But this would cause two distinct problems, first you would be adding a lot of code to each page and second if you wanted to make a change to the JavaScript or CSS styles you would need to do so on every page that the code had been copied onto.
Both of these problems can be solved simply by using external files. You create one external file for your CSS and another file for your JavaScript. These could be named mysite.css for the CSS and mysite.js for the JavaScript. These files can be created in any plain text editor or html code editor, they are nothing more than files that contain most of the CSS or JavaScript code from the web pages.
With JavaScript you have an opening JavaScript tag, then a comment tag, then assorted functions and what not, followed by a closing comment tag and a closing JavaScript tag. Your external file would start with the opening comment tag, contain all the functions and such, and end with the closing comment tag. You would leave both the opening and closing JavaScript tags in the html page. If you have more than one JavaScript on the page you can move all the code into one external js file. Simply copy it into the file in the same order as it exists in the JavaScript tags on the html page. You will only need the one pair of opening and closing comment tags.
Once your JavaScript is moved off the page you will need to tell the web page where to find it. This is done in the JavaScript tag that was left on the page in the head section. Right now this will be an opening JavaScript tag placed right up against the closing JavaScript tag, with no additional code in between. You will place the reference to the external JavaScript code inside the opening JavaScript tag like this:
script language=”JavaScript” type=”text/JavaScript” src=”mysite.js”
Placing CSS styles in an external file is handled in exactly the same manner. Move the styles into the external file, and then refer to that external file with your style tag in the head section of the web page like this:
link href=”mysite.css” rel=”stylesheet” type=”text/css”
An added benefit of moving the code into external files is that you can then change the styles of your whole site simply by changing the code in the one external file.
Once you have moved the code into external files you will have greatly simplified the code on each page. This will take you a long way towards making your pages lean and mean
, and very search engine friendly.
You can find sample external files for this article on my web site at: www.howtogurus.com/free-articles.html
Copyright 2005 - George Peirson
articles by George Peirson at www.howtogurus.com/free-articles.html
More Related Articles From This Website...
There are plenty of mistakes in the world of web design. Let's look at what I believe to be the 10 biggest. 1. Too Many Ads. When you're trying to make money from your website, it's all too easy to overwhelm your site with ads. Put yourself in your user's place and take a good hard look at your site and ask yourself if the ads feel intrusive. Does the site look like an information source or does it feel more like a page-holder for the ads? 2. Plugin Overload. You have to keep plugin useage to a maximum....
The object of search engines is to give their visitors a list of web pages relevant to the search words, in the order of relevance to the search words. So what do they want from websites? Relevance to a search: The frequency of the search word on a web page is an indicator of its relevance. If a web page contains the word ten times on the page, it is ten times more relevant than a page which contains the word only once. The position of the search word:....
Learn how to buy a template under cost and sell for a profit. I will be covering a few things in this new article. 1. What templates to buy. 2. When to buy the template. 3. Convert that template into profit. 4. Trading, what's a deal and what's not. 5. How much should you pay for coding. 6. Being professional. 7. Conclusion This article will mostly be covering the purchasing of templates, but you can use these tips for buying quite a bit of other things as well. 1. What templates to buy. If you are planning on using the template for....
Have you ever had a proposal, estimate or quote for search engine optimization work and wondered what goes into the pricing? What makes one site need more work than another? Why do some sites increase rankings faster than others? Why do some sites get more traffic from their top page ranking than yours? There are so many aspects of a web site that can decrease or boost your search engine rankings. Each web site is as unique as DNA and as such, will react differently to different marketing treatments What are these different....
What do you need to get top rankings on Google? What's the secret sauce of success? There are many ingredients in the mix, but here are three of the most important that you need to concentrate on. 1.) Keyword relevant copy and content. Whatever the keywords you want to get found under, be sure that you have enough copy and content about those specific word. Which would give Google a reason to rank you in the first place. If for example, one of you priority keyword is "computer training software". Create a separate page or section for this keyword (at least....
Proper keywords and placement on your Website is crucial to your search engine rankings. After preparing your list about keywords well, you should begin placing those keywords on your website. But, which part on the website should it be placed? Proper keywords and placement on your Website is crucial to your search engine rankings. After preparing your list about keywords well, you should begin placing those keywords on your website. But, which part on the website should it be placed? 1. Title TagsAs you open a front page via the....
The best way to build an effective website is to understand the psychology of web surfers. Here are some things you should know about web surfers: They are busy They are impatient They have short attention spans They are turned off by a lot of text Clutter on a webpage overwhelms them and is a turn off They will more often than not leave a website without clicking past the homepage What can you do to make your website more....
Doing website reviews can be fun and it can even be easy. I usually find it helps to sit back with a glass of cab sav in one hand and a cheese biscuit in the other, and start by summing up the website after you have had a good look through it Introduction Grab your reader's attention by outlining an interesting aspect of the site. This can be about the function of the website, a bit about the history or what first attracted /repulsed you when you saw it and why. Example: "As soon as I saw the mouthwatering chocolate....
Optimizing a page for quick load times can be broken down into 3 broad categories: the basic coding of the page, scripts that are used on the page, and images. Of these three, images that are too large can have the most significant impact on load times and therefore have the greatest potential for improved page loading times if properly optimized. Are you losing visitors to your web site due to slow page load times? Is your site being penalized because the images on your site are too large?....
Perhaps you are in a non-profit organisation. Why should you create a website? Perhaps you are offering a gardening or plumbing or dentistry service. Why should you create a website? Perhaps you are selling private jets. Why should you create a website? Why Should You Create a website? A. What do you want when you create a website? B. What to do to get what you want. A. What do you want? 1. You may be in a non-profit organisation and want to post forthcoming events on the web. You don't want to....
Improve your website's search engine rankings and stop wasting time on ineffective methods by using the Search Engine Rule ofThumb. There are many misunderstandings about how toget high rankings on search engines. I've heard some very strange ones such as"put a counter on your home page." These myths -- downright bad advice -- can cause you to focus on useless, time-wasting efforts leading to confusion, frustration and, of course, poor results. When making decisions about what to do to improve your rankings, let me give you a rule of thumb, and call it SERT - the Search Engine Rule of Thumb.....
There is no denying that Google is the king of the hill when it comes to search engines. A fairly decent page ranking in Google is worth so much more than a better showing in other less prominent search engines. The reason for this is the overwhelming popularity of Google. A vast majority of internet users use Google's services in looking for quality content on the internet. With the large number of people using it, a high page rank acts a great advertising opportunity for your website. Because of the astounding amount of websites that submit their web pages to Google,....
Ten Steps To A Well Optimized Website - Step 6: Human Testing by: Mary Davies Welcome to part six in this search engine positioning series. Last week we discussed the importance of internal linking. In part six we will cover the obvious and yet often overlooked importance of its appeal to a real-live human being. While not directly related to SEO it is so often overlooked in the quest for higher search engine positioning that it has become a fundamental step in our ten step series. Over this series we will cover the ten key aspects to a solid search engine positioning campaign. The Ten....
I have reviewed thousands of articles written by marketers hoping to promote their websites, products, affiliate programs, and e-books. While most of the articles are useful, all too many are not worth the paper they're printed on (and that's saying a lot in the electronic age!) Are you making the same mistakes? In this article you will discover the simple, common sense techniques that will get your article accepted by article banks, approved by newsletter editors, and published in some of the largest ezines online. I'll show you how to increase your "article-submitted-to-published" conversion ratio and draw readers over to....
blogs; what good are they anyway? Well, actually blogs are both fantastic whether you are running a business website or you are simply using blogs for fun. In terms of business, blogs can prove to be a supplemental form of advertisement and you will find them to be a unique device that you can use to keep in contact with your clients. Further, in terms of personal use, blogs are definitely an excellent way to stay in touch with your family and friends, even if they are across the globe. Best of all, blogs....
Trackback URL for this post:
http://www.problogtips.com/using-external-coding-to-improve-search-engine-placement/956/trackback/
Posted by Jaron in the catagory of... General Interest





Easy Screen Recorder
Bluff Titler

