The practice of optimizing elements on a website in order to rank higher and earn more relevant traffic from search engines is known as on-site SEO.