ArticlesBase.com - Free Articles Directory
Free Online Articles Directory
21.08.2008 Sign In Register Hello Guest
Email:
Password:
Remember Me 
forgot your password?


Using External Coding to Improve Search Engine Placement

Author: George Peirson Author Ranking Blue | Posted: 06-02-2006 | Comments: 0 | Views: 347 | Rating:  (50) Article Popularity - Green (?) Got a Question? Ask.
Sign Up Now!

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

Rate this Article: Current: 0 / 5 stars - 0 vote(s).

Article Source: http://www.articlesbase.com/seo-articles/using-external-coding-to-improve-search-engine-placement-13757.html

Print this Article Print article   Email to a Friend Send to friend   Publish this Article on your Website Publish this Article   Send Author Feedback Author feedback  
About the Author:

George Peirson is a successful Entrepreneur, Internet Trainer and author of over 30 multimedia based tutorial training titles. Read morearticles by George Peirson at http://www.howtogurus.com/free-articles.htmlArticle copyright 2005 George Peirson

Submitting articles has become one of the most popular means of generating quality backlinks and targeted traffic to your website. Join us today - It's Free!

Article Comments

Comment on this article Comment on this article
Your Name
Your Email:
Comment Body
Enter Validation Code: Captcha


Related Articles

The Three Principles of HTML Code Optimization
By: George Peirson | 06/02/2006 | SEO
Just like spring cleaning a house, the html code of your web pages should get periodic cleaning as well.

Is Spyware Slowing Your Computer Down to a Crawl?
By: George Peirson | 06/02/2006 | Online Business
Everyday more and more computers are becoming infected with Spyware and Adware (advertising tracking). No matter where you go on the web, someone is trying to sneak something on your computer.

Keyword Lists - Their Proper Care and Feeding
By: George Peirson | 06/02/2006 | SEM
One of your most important marketing assets is your Keyword List. But are you giving your Keyword List the attention it deserves? Is your Keyword List getting a little shaggy around the edges? Are your keywords becoming old and out of date?

Flash Tricks for Improved Search Engine Rankings
By: George Peirson | 06/02/2006 | SEM
Normal wisdom says that if you use Flash in a web site it will hurt your search engine placement. This is due primarily to search engines having a hard time to index Flash content. But with a little ingenuity we can use that very problem to our advantage.

How to use Flash in your site and still be search engine friendly
By: George Peirson | 06/02/2006 | SEM
There are ways to have the benefits of Flash on your site and still be attractive to search engines. It is all in how the Flash is used. Some of the methods are simple while others require more programming experience.

The Three Principles of Image Optimization
By: George Peirson | 06/02/2006 | SEO
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? Are you able to capture your visitor's attention in the first 10-15 seconds that they are on your site?

The Five Ways You Should Be Using Keywords
By: George Peirson | 06/02/2006 | SEO
We have all read lots of articles on how to gather keywords, how to compile a huge keyword list, how to make these keywords relevant to our web site. But exactly what do we do with all these keywords once we have them?

SEO Copywriting and Search Engine Optimization
By: Dinesh | 20/06/2008 | SEO
SEO copywriting and search engine optimization goes hand in hand and serves the same purpose, which is to make the website rank high in the search engines. SEO copywriting is the primary step involved in the process of search engine optimization.

Got a Question? Ask.

Ask the community a question about this article:

Frequently Asked Questions

What's your favorite add-on on facebook.com?
By: computerwhiz | 28-10-2007
what's your favorite add-on on facebook.com?

Would reaching out to bloggers be a correct first ...
By: nirb | 27-10-2007
Would reaching out to bloggers be a correct first step in promoting a website and if not what would you suggest for promoting a website at the very beginning?

Pls. give website of free online elearning of ...
By: atish_78 | 27-10-2007
pls. give website of free online elearning of computer education like programing language

Do i need ie7? Can I delete it sucsessfully ...
By: Longduckdong | 27-10-2007
Do i need ie7? Can I delete it sucsessfully without screwing up my pc?  I have firefox and it works great. 

Who will be the villains in IRON MAN?
By: maracruz | 27-10-2007
hi.. am just curious , who will be the villains in the upcoming movie IRON MAN?

Which email server do you find easiest to navigate: gmail, aol, netscape, outlook, etc.? and why?
By: computerwhiz | 27-10-2007
which email server do you find easiest to navigate: gmail, aol, netscape, outlook, etc.? and why?

Q&A Powered by:
Powered by Yedda 

Latest SEO Articles

The Future of Online Marketing: Beckoning New Opportunities or Raising Threats?
By: Smit Mathur | 21/08/2008
With the advancement of these latest technologies, it is true that the future of online marketing beckons more opportunities. At the same time, the rising problems like fraud, copyright violations throw a big challenge to its growth. In this article, we have discussed about its pros and cons and tried to find out a possible solution.

How To Build Back Links For Your Web Business
By: Alan Largo | 21/08/2008
Marketing is essential no matter what type of business you are in, and on the internet it is essential. You do not have the benefit of drive-by or phonebook traffic as you do when you are looking at a location-based business...

Online Product Promotion
By: DevIT Inc. Pakistan | 21/08/2008
Promotion of a product plays vital role in Marketing Management. Companies can run same advertisement and promotion campaign side by side, in home market or change them for each local market.

Cool Tools and Firefox Extensions for SEO Enthusiasts
By: Amy Nutt | 21/08/2008
There are so many free tools and software programs for SEO enthusiasts that it almost becomes overwhelming and difficult to grasp the 'right' tools to use in your SEO efforts. Everyone has their own personal preferences which makes this predicament even more perplexing.

Get Better Results With New York Search Engine Optimization
By: Steve Waganer | 21/08/2008
Now climb the expected heights with the help of good New York search engine optimization firms.

The Best SEO Tools To Use For Your Business
By: Alan Largo | 21/08/2008
If you want to make money online or if you want to survive as an online business, you will find that the traffic from the search engines is not something that you can do without! Tools for search engine optimization are extremely important...

Understanding the SEO Basics
By: Dan Edgar | 20/08/2008
To get the best from any SEO content provider, you need to understand the basics of SEO itself. From terminology to what method is more effective than others, even just understanding the SEO basics will help you plan ahead and know what you need from your next content requirement.

SEO Content Providers and SEO Content Writers - the Difference
By: Dan Edgar | 20/08/2008
Although they may sound similar, SEO content providers and SEO writers are actually quite different in practice. While it's true that they both provide valuable services to website owners or similar, there's actually one main area where the two are completely different - and it's in the name itself. Whereas SEO writers will generally write articles for a website or blog, SEO content providers will also look at the overall SEO of a website to maximize its SEO visibility.

More from George Peirson

7 Basics of Good Web Design
By: George Peirson | 01/07/2008 | Web Design
Use these 7 Basics of Good Web Design to improve your web site and make it stand out from the competition.

The Five Ways You Should Be Using Keywords
By: George Peirson | 06/02/2006 | SEO
We have all read lots of articles on how to gather keywords, how to compile a huge keyword list, how to make these keywords relevant to our web site. But exactly what do we do with all these keywords once we have them?

The Three Principles of Image Optimization
By: George Peirson | 06/02/2006 | SEO
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? Are you able to capture your visitor's attention in the first 10-15 seconds that they are on your site?

How to use Flash in your site and still be search engine friendly
By: George Peirson | 06/02/2006 | SEM
There are ways to have the benefits of Flash on your site and still be attractive to search engines. It is all in how the Flash is used. Some of the methods are simple while others require more programming experience.

Flash Tricks for Improved Search Engine Rankings
By: George Peirson | 06/02/2006 | SEM
Normal wisdom says that if you use Flash in a web site it will hurt your search engine placement. This is due primarily to search engines having a hard time to index Flash content. But with a little ingenuity we can use that very problem to our advantage.

Keyword Lists - Their Proper Care and Feeding
By: George Peirson | 06/02/2006 | SEM
One of your most important marketing assets is your Keyword List. But are you giving your Keyword List the attention it deserves? Is your Keyword List getting a little shaggy around the edges? Are your keywords becoming old and out of date?

Is Spyware Slowing Your Computer Down to a Crawl?
By: George Peirson | 06/02/2006 | Online Business
Everyday more and more computers are becoming infected with Spyware and Adware (advertising tracking). No matter where you go on the web, someone is trying to sneak something on your computer.

The Three Principles of HTML Code Optimization
By: George Peirson | 06/02/2006 | SEO
Just like spring cleaning a house, the html code of your web pages should get periodic cleaning as well.

Article Categories






Give Feedback

Sign up for our email newsletter

Receive updates, enter your email below