MxxCon, 
Townhouses are rows of buildings attached together with different entrances, whereas apartment buildings have one main entrance.

please check https://wiki.openstreetmap.org/wiki/Tag:building=terrace and https://wiki.openstreetmap.org/wiki/Tag:building%3Dapartments