Theory
Tangent has the same degree axis as sine and cosine, but a very different shape. It is tan x = sin x / cos x. At 0°, tan x = 0; at 45°, tan x = 1. Unlike sine and cosine, its y-values are not limited to -1 and 1.
As x approaches 90° from the left, the graph rises without bound. At exactly 90°, cos x = 0, so tan x is undefined. Draw a dashed vertical asymptote at 90°; do not put a point on it or connect the curve across it.
Immediately to the right of 90°, the branch comes up from very negative values. It passes through (135°, -1), (180°, 0) and (225°, 1), then rises towards another undefined angle at 270°. A new branch starts to the right of 270°, passes (315°, -1) and returns to (360°, 0). Each branch rises from left to right.
The tangent pattern repeats every 180°, not 360°. Zeros are at 0°, 180°, 360° and so on. Undefined angles are 90°, 270° and every 180° after that. For example, tan 405° = tan 45° = 1.
When solving tan x = a, read every crossing on the separate branches in the stated interval, then use the 180° period to find repeats. Never draw a continuous line through an asymptote: it would falsely suggest a value at an angle where tangent does not exist.