Both are important here's why: On-page SEO will shapes your website's content,will help structure for search engines, whereas, off-page SEO will builds the credibility through backlinks.And overall it will help to enhance your sites visibility in search result.off page SEO or on page SEO?
AbsolutelyIt's like asking which is best - food or water? You need both to survive.