Here are the basic rules concerning vertical asymptotes:

Let's move on to horizontal asymptotes.

Horizontal Asymptotes

Let's look at our function

Why does the graph of f(x) is getting closer and closer to the line y=0 as x approaches plus infinity or minus infinity? It's enough to look at a few values of x and f(x) and the corresponding points on the graph to understand the why of it.