On-page SEO refers to optimizing elements directly on your website, such as content, meta tags, and HTML code. Off-page SEO, on the other hand, involves external factors like backlinks, social signals, and other elements that impact your site's authority and credibility in the eyes of search engines.