On-page SEO refers to the SEO elements that you control on the website, or the code of the website itself. Some examples of on-page SEO include content, headlines and headings, image optimization, title tags, meta descriptions, structured data, and much more. On-page SEO focuses on optimizing the parts of your website that are under your control, while off-page SEO focuses on increasing the authority of your domain by creating content and obtaining backlinks from other websites. To better understand the difference between the two, you need to understand, at a basic level, how search engine algorithms work.
Left-aligned content, short paragraphs, the use of images throughout the content, headings, and bold passages are some examples. But, after all, what is the intention of this? Some examples of this include measures to optimize content or improve the meta description and title tags. On the contrary, off-page SEO refers to links and other signals.