An apartment, or flat building, is normally a self contained housing unit that takes up only a portion of a massive building, usually on a first floor. These buildings could be stand alone buildings, or a part of multi-family dwellings. There are lots of names for these buildings, see here.