On page optimization involves optimizing a webpage internally to rank higher in search engines. It includes factors like keywords, title tags, meta descriptions, image alt text, URLs, links, and XML sitemaps. Content, titles, descriptions, and keywords should be optimized for readers while also addressing search engine requirements. Proper on-page optimization helps search engines understand what the page is about and increases the chances of it ranking for relevant search terms.