To begin with, here's @diveintomark's explanation of the rel attribute. Read it. It's good.

http://diveinto.html5doctor.com/semantics.html#link