SEO is about knowing some of the general principles that help a site or page to rank well in search engines. Building the best quality site that can with content meet the needs of the readers and as a result attract links from other sites.
I’ve come to learn that when you build a high-quality website that SEO tends to largely look after itself.