A villa is basically an independent building set in its own grounds while an apartment is a part of a building that is going vertical. Before making any comparisons between the two though, you need to keep a few basic points in your mind which are pertinent to reaching a decision.
Villa is a standalone house that comes with a yard or veranda. These are usually in areas where there are other villas as well. Similar houses or villas in the same locality foster a sense of togetherness or a feeling of community that building flats have and yet they give you the privacy that bungalows promise