In recent years, officials in many of the nation's most expensive housing markets have embraced "micro apartments" as a way to provide less-expensive housing for young renters.

They are betting that the tiny apartments—generally the size of a hotel room for about half the rent of a full-size apartment—will attract young professionals and recent college graduates, helping to revitalize city centers.

Micro...