On-page optimization is the first step in SEO and involves optimizing content, images, and code. Content should be optimized using heading tags, bold/colored text, inline links, and keyword density. Images require alt text for search engines and validation ensures code meets specifications. Site maps and directory submissions help search engines find all pages to properly index the site.