On-page optimization involves optimizing various elements like title tags, headings, URLs, image alt text, and schema markup to help Google understand the content.