On-page SEO refers to optimizing the content and structure of a website for search engines, while off-page SEO involves activities outside the website, such as link building and social media promotion.