the situation is a little clearer if one considers the function:
f(x) = x/x
(now we don't have any complicated algebra in the way).
well, as any fool can tell you, x/x = 1, right?
well, almost. 0/0 doesn't make any sense, because __ /0 is "bad" (undefined).
but, f(x) = x/x is perfectly reasonable everywhere EXCEPT 0, so if we made THIS function:
g(x) = x/x, x ≠ 0
g(0) = 1
the function g behaves the way we WANT f to behave.
in technical terms, g is CONTINUOUS, while f is NOT.
continuous functions, therefore, are functions that "make the sense they're supposed to". non-continuous functions, might do something "unexpected", so it might be best if we save studying those for later, after we understand continuous functions better.
of course, what I've done with the above discussion, is said basically:
if a function is continuous, certain kinds of troublesome problems go away.
well, that's all very well and good, but what, exactly, IS a continuous function (we've traded difficulty with functions, off for difficulty with some definition of a property a function might have)? and that's where the concept of a LIMIT comes in.
a limit acts like a number, or rather, acts like an ordinary "output" of a function, but it "extends the places a function can go". roughly speaking, a continuous function "equals its limits at all points".
now, we've made yet ANOTHER trade-off...to have any hope of knowing what continuous means, we need to know what a limit is. naively, a limit of a function, is what the output is near, when the input is near a given spot, say x = a. the exact definition of "near" requires strange quantifiers with epsilons and deltas, but in a loose sense, x near a means that the difference between x and a is small (close to 0, in a well-defined way).
so a continuous function is one for which f(x) is near f(a), when x is near a. this corresponds nicely to our naive idea that a continuos function of one variable, is something you can draw "without the pencil leaving the paper".
as you can see with f(x) = x/x, when we graph it, we have a microscopic gap at x = 0. such a small hole won't show up very well on a graph, but is disastrous if f represents something like an internet connection (the connection gets "broken" at x = 0, and that's that).
this is something to watch out for, for any function of the form:
f(x) = g(x)/h(x).
we might have h(a) = 0, for some value a, which might make f do some strange stuff near a.