Let the domain of the function $f(x)$ be $[0, 10]$, and its range be the extended real numbers (including +$\infty$ and -$\infty$). Define:
$ f(x) = \left\{ \begin{array}{lr} 1/x & : 0 < x \leq 10\\ +\infty & : x = 0 \end{array} \right. $
Question: why is $f(x)$ not continuous at $0$?
Context: there is a theorem that states a function is uniformly continuous on $(a,b)$ iff it can be extended to a continuous function on $[a,b]$. Because $1/x$ is not uniformly continuous on $(0,10)$, the extension function $f(x)$ defined above must not be continuous.
All you need is the $\epsilon-\delta$ definition of continuity. If $x=0$ and you want $\epsilon = 1$ what will $\delta$ be? $\epsilon-\delta$ definition is applicable to any metric space, not only the real line.
The confusion is arising from $lim_{x \to 0} f(x) = \infty$. This is a statement very different from $lim_{x \to 1} f(x) = 1$, for example. In the former case there is no converging going on. The values of $f(x)$ never get particularly close to $\infty$. This is a notation only used for real numbers. Using the topological definition of a limit we would say that $lim_{x \to 0} f(x)$ does not exist.