A row of terraced houses (i.e. houses which share two walls with adjacent houses) can initially be tagged as building=terrace, but it's preferable to then split them into individual houses. Make sure neighbouring houses share at least two nodes.