I'll break this down into what I think the two questions being asked are:
How can we take the limit if the function is only differentiable at one point?
Well, the limit is the definition of differentiability at that point, differentiability does not rely on that of neighboring points. In fact, all you need is continuity at that point. Note that not all continuous functions are differentiable, however all differentiable functions are continuous (which this whole question ultimately demonstrates). Which takes me onto the next point.
How can we take this limit if the function is only continuous at one point
Continuity essentially guarantees that for small enough h, not only will it exist, $f(x+h) \approx f(x)$. It is also guaranteed by continuity that, as h gets smaller, the approximation becomes better. If $f(x+h)$ is getting closer and closer to $f(x)$ (definition of continuity), then the limit of the numerator makes the whole fraction an indeterminate form which allows the derivative to exist (again, continuity does not guarantee differentiability). There is a good example of this in the link you mentioned.