Advertising is a form of communication intended to persuade an audience (viewers, readers or listeners) to purchase or take some action upon products, ideals or services (explanation taken from wikipedia).
A website can be a way for promoting your business online, but it can also be a way for acquiring more revenues by way of advertisements. These advertisements can be in the form of text ads or banner ads.