Onpage optimization involves optimizing the content and structure of a webpage to make them more search engine friendly. This can include optimizing page titles, meta descriptions, headers, and content, as well as ensuring that the website's structure is easy to navigate.