On-Page SEO: It is a type of SEO in which optimization is done inside the website. For example, keyword analysis, content writing, sitemap.xml, robots.txt, title, meta, alt, h1 tags in HTML code etc.
Off-Page SEO: It is a type of SEO in which optimization is done off the website. For example, blogging, article submissions, press release submission.