White hat: Legit techniques that give you long term results without any risk of getting banned/caught/flagged or violated. Black hat: Obviously the opposite. Only do that if you really know what you are doing. Grey hat: a mixture of both