Both are equally important and helps to rank keywords higher in search engines. They are also useful to drive good traffic to your website from various external webpages.