On-page optimization involves editing things on your page so that search engine spiders can read your site and index them properly. There are many factors that have an effect on your webpage ranking such as title tags, meta description, heading tags, image alt tags, content, URL structure and internal linking. It is important to have unique content on every page and to avoid having duplicate content or keyword stuffing. An ideal optimized webpage will include keyword in title, keyword in URL, keyword in image alt tag and the keyword listed 1-3 times in the body copy.
Title tags are the most important element for on-page optimization. Title tags changes the page title in your browser which is something search engine spiders look at to determine what the page is about. The keyword should be as close to the front of the title tag as possible. For example, if you want to rank for the keyword “Pink elephants”, you may want to have a title like this: “Pink elephants at the zoo” or “First pink elephant to be born”. Title tags should not exceed 65 characters and should be unique for every page on your website.
Meta descriptions do not help with ranking your website on search engines but can help with increasing the click through rate. Meta descriptions are placed within the head tag and should not exceed 165 characters. Meta descriptions do not show up on your page and are only used to show up on search engines. Google may sometimes replace your description with a snippet of text from your page so you should not spend too much time on this.