I want my website to get searched by others but I don't know how can I do it.

someone told me to do on-page SEO to get ranked in search engines.