A combination of both will be preferred because on the one hand your website should have quality contents for people to find and study, and on the other hand it should have some good links pointing to its pages to convince search engines that it serves better ranks and stronger traffic shares. Make your web pages for people, keep them updated with original contents and in the meanwhile do not forget to build links, especially the ones originating from relevant sources and portals.