It is mandatory for a website to be available on first page as rarely traffic proceed to second page because they got there answers to the query on first page. Search Engine Optimization (SEO) is a practice of ranking website organically by increasing your website quality and traffic.
There are various factor on behalf of which google rank your website. Some fundamental and essential factors that help you to rank your website are user interface (which include text visibility, comprehensibility, text format, color scheme etc.), speed, relevancy, content length, page name, keyword etc.