There are a lot of on-page SEO factors which are necessary to optimize your website. But meta tags, robots, xml sitemap, h1-h2 tags, are most important.