SEO can be done on or off the website. On-page SEO is done directly on the website, which includes optimizing content, HTML tags, and internal links. Off-page SEO involves activities conducted outside the website, such as link building and social media promotion, to increase the website’s authority and reputation on the internet.