On page optimization consists of a special modifications to every page on your site. Some experts advise that you need to start planning this even before you design your site. If you already have a website built, don't worry - you won't have to redesign it completely. There are only a few very important things you must do in order for it to rank better.
1. Relevance
As I already mentioned, Search Engines are constantly trying to improve their services. Since users enter only one or a few words (keywords) in a search query, they have among millions of websites to list with a same keywords. Therefore, relevance is very important to them. They use algorithms to calculate each's page relevance based upon keyword use and density on that page. Their aim is to bring users as much relevant information as possible to the keywords they specified.
So, when you design your site, you'll have to bear in mind that you need to create a relevant site, or if you already have one to make it relevant. You need to focus it to your main subject. For example, if your site is about computers, focus it to computers and computer related stuff. Don't write anything about real estate, gardening, pets, etc...
If you have one large page, or have many different, but related subjects it is much better to create more smaller pages. Of course try not to compromise your content. Smaller pages are crawled more easily.
2. Keyword research
Keyword research is very important. This is precisely how you will target your visitors. Just place yourself in their position and try to figure out what keywords would they use if they wanted to find information your site contains. You must also find the most frequently used keywords because you want to target as many visitors as possible. That is why I created a webpage about keyword research with all necessary information and tools.
3. Where to include keywords?
When you select your main keywords, you must include them on some places on your page to gain maximum effect. Search engines are using keywords from your page's name, title, meta tags, headline and content to associate with your site. Therefore, you must include your keywords in all of the following places. There are also very important places where you must include keywords and they are title attributes for your links and alt attributes for your images. Remember to keep your pages relatively small (under 100kb).
4. Optimizing your static (HTML) pages
Static pages are HTML pages. Search Engine robots are designed to recognize these pages, index them and follow static links (standard anchor links with forward slashes - /). Therefore onpage SEO for these pages is much easier. If you have a HTML website, or HTML pages you only have to include keywords in the places I mentioned. Sometimes you must rewrite your title, headline, or even the entire content to make them keyword rich. This can take a long time, but trust me - it's worth it. I also created a page with all HTML modifications necessary for better ranking.
4. Optimizing your dynamic pages
Many webmasters today use dynamic content in a form of JavaScript, PHP, ASP, CGI, etc. Unfortunately dynamic content won't do you much good when it comes to SEO. SE spiders index and follow only static pages and standard links with forward slashes (/) and they ignore Java scripts, PHP code, or any other dynamic content. Once they reach dynamic content such as question mark (?) in dynamic links, or any other command symbol (such as $, %, &, etc.) in a page's content they stop indexing. In order to get this content properly indexed you should make some changes.
I will update this section in a few days. Sorry for any inconvenience.