As others said, $\tan(x)$ is not continuous at the points $\pm \frac{\pi}{2}$, because $\tan(x)$ is not defined at those values and in any neighborhood of those points, $\tan(x)$ becomes insanely large. So, it behaves very badly around those points and those are very serious singularities of the function.
In general, when the value of a function at a point $x=a$ tends to infinity, it can't be continuous anymore because by definition we have:
$$\forall M>0, \exists \delta>0: |x-a|<\delta \implies |f(x)|>M$$
Now to demonstrate that it can't be continuous, notice that for any $L \in \mathbb{R}$, a form of triangle inequality tells us:
$$\left| |f(x)|-|L| \right| \leq |f(x)-L|$$
Now if you take $M=|\frac{L}{2}|$, you will find a $\delta_0>0$ such that in the neighborhood $x \in (a-\delta_0,a+\delta_0)$:
$$0<\left||f(x)|-|\frac{L}{2}|\right|<|f(x)-L|$$
Therefore, $|f(x)-L|$ will never be smaller than $||f(x)|-|\frac{L}{2}||$ and the definition of continuity at $x=a$ fails for any $L$ when $$\epsilon <\left||f(x)|-|\frac{L}{2}|\right|$$
I'm thinking that as x tends to pi/2 from left, tan(x) tends to infinityCan a uniformly continuous function be *un*bounded on a bounded interval? See for example Uniform continuity on (0,1) implies boundedness. – dxiv Dec 07 '17 at 06:08