Explanation:
first of all
tan(x) = sin(x)/cos(x)
that is the tangent ratio.
so, the question is also, what happens to sine and cosine for obtuse angles.
remember the trigonometric triangle inside the circle.
sine is the up/down leg (up = positive, down = negative), cosine is the left/right leg (and extension of the leg; of left from the center = negative, if right from the center = positive).
so, for an obtuse angle (90° < angle <= 180°) sine is still up and therefore positive, but cosine is left from the center and therefore negative.
for that reason tan(angle) = sin(angle)/cos(angle) is negative.
in fact, it is -tan(180 - angle).