<base href="http://www.whatever.com/"/>

I seen these codes right before link and I want to know how this works on a website. What is the purpose of base?

There is good reason why you seldome see <base>, it seldom works
declaring relative links start at XXX is a total stuffup, is difficult to maintain, does not allow portability