You are on the right track, but i would not focus too much on the numbers of H2.Hello,
I'm building a website from scratch with Laravel. I need a good base for on-page SEO. What will google look at on my page? I know H1 is for the title of the page. H2 is for subtitles for text blocks, is h3 necessary to use? My idea is to use H1 once, for example, "Buy Solar panels", h2 3-4x, "where to buy solar panels" "what to look at" etc. Using images on the site with alt tags, using in the header meta tags like, meta name, go:type, og:locale, go:site_name. etc. I am going to use unique written text and using SEMrush to improve it. Around 500-800 words per page, depends on the niche. What else is important to look at when building a site from scratch for SEO?
Thank you for your advice
For laravel Site:
One clear H1
Use H2/H3 logically
Write unique, useful title tag & meta description for every page.
Clean URLs
Important pages are crawlable & internally linked.
Create & maintain XML Sitemap
Use canonical tags
Alt text images
Structured data