Often, a function f(x)f(x) has a vertical asymptote because its divisor equals zero for some value of xx.
For example, the function y = 1/xy=1x exists for every value of xx except x=0x=0.
The value of xx can get extremely close to 00, and the value of yy will get either a very large positive value or a very large negative value.
So x=0x=0 is a vertical asymptote.

Often a function has a horizontal asymptote because, as xx increases, the denominator increases faster than the numerator.
We can see this in the function y=1/xy=1x above. The numerator has a constant value of 11, but as xx takes a very large positive or negative value, the value of yy gets closer to zero.
So y =0y=0 is a horizontal asymptote.