On-page SEO optimizes website content, structure, and HTML elements to improve search engine rankings and user experience.