How did city building codes improve life in urban areas?
A. They confined tenement housing to industrial zones.
B. They restricted the expansion of factories and mills.
C. They established quotas on immigrants moving to cities.
D. They ensured structures would be safe and stable.