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...
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:....
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....
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....
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....
SEO = Search Engine Optimization Search Engine Optimization is the process of scientifically tweaking a particular website's pages in order to get a good rank from major search engines for a competitive keyword or group of keywords. SEM = Search Engine Marketing Search Engine Marketing is one effective example Internet Marketing that involves search engine optimization. This involves planning and executing right methods to target and get quality traffic to a particular website and convert this traffic into sales or signups. SEO Specialist = Search Engine Optimization Specialist Previously called Search Engine Optimizers (SEO) but revised to SEO Specialist to give way and prohibit confusion....
Many clients ask me how to drive more traffic to their blogs. By now you have probably heard that blogs are an excellent resource to get leads as well as clients for your business. The best way to do that is by creating search engine friendly blog posts that get indexed in search engines. When people search for information on topics you discuss in your blog it appears on the search engine result pages. Potential customers then are able to read what you have to say and get on your mailing list.So now it....
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.....
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....
Ever felt intimidated at the convoluted, jargon-ridden information about Internet marketing for small businesses available on the Net? Ever been horrified by the huge fees the experts charge, putting search engine optimization beyond your own means? Ever thought: What exactly is search engine optimization anyway, and can I do it myself? The answer is: Yes, you can! The basics of search engine optimisation in applied web marketing are simple. It's all to do with the keyword content of your text copy, and can be summarised in seven points. 1. Register a good domain name which reflects what your site is about. Even....
You are probably asking what a signature or author resource box has got to do with promoting your online home business opportunity. It is one of the most effective methods of internet marketing that will drive free targeted traffic to your internet online home business. Ways To Use Your Author Resource Box or Signature: The most powerful ways to use your signature to promote your online home business opportunity are in the Author`s Resource....
Link popularity is determined by the number of links from relevant sites that direct traffic to your website. Because the latest updates to the major search engines, like Google and Yahoo! now consider not only the number of links, but additionally the theme and content of the linking page. Link Popularity is the key to earning a place in the results pages of these search engines. As a website owner, you may or may not realize the value of a campaign designed to increase link popularity. The results of such efforts serve to increase the amount of traffic not only....
SEO or Search Engine Optimization is a buzzword that is around for a long time. There are as many misconceptions about SEO as there are webmasters. Some webmasters are afraid of SEO, thinking it is too complex and not worth the effort. Others believe that SEO will get your website banned from the search engines and there are the few that actively practice SEO. Improve the Search Engine Ranking of Your Website in 3 easy steps!SEO or Search Engine Optimization is a buzzword that is around for a long....
There are a lot of ways that you can improve your site’s page ranking in search engines, unfortunately, not all of them are good. Some people employ certain methods in acquiring a high page rank in search engines, even if these are considered to be deceitful in the sense that they are designed to trick the search engines - one of these methods is actually duplicating web content. What is duplicate content? Duplicate content in SEO is actually any web content that is considered to be similar to another site. Search engines have actually implemented new filters specifically to monitor these types of....
This article examines the basics behind quality site promotion. Let us take a good look at acronyms in the industry! Search Engine Optimization (SEO), is a term thrown around a million times a day online. This article examines the basics behind quality site promotion. Let us take a good look at acronyms in the industry! Search Engine Optimization (SEO), is a term thrown around a million times a day online. So many sites use old techniques that will get there rankings hurt or reversed with there hap-hazard web designs it....
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


