Huge buildings with teeny Apartments where extended families would live one teeny room were known as TENEMENT HOUSING.
Tenement housing was known for being buildings with small apartments that housed multiple families, often rented by poor immigrant families in the inner-cities.