Start here:
Google’s “Search Engine Optimization Starter Guide”
After that, study https://support.google.com/webmasters#topic=3309469 and https://www.bing.com/webmaster/help/webmaster-guidelines-30fba23a.
Don’t rely on out-dated or just plain wrong information which you can find repeated all over the Internet.