Every building used in whole or in part as a dwelling unit or as two (2) or more dwelling units or used in whole or part as a rooming house shall conform to the requirements of this chapter, irrespective of other uses in such building and irrespective of when such building may have been constructed, altered or repaired.
No person shall occupy as owner-occupant or let or rent to another for occupancy any dwelling, rooming house, dwelling unit or rooming unit for the purpose of living, sleeping, cooking or eating therein which does not comply with the requirements of this chapter.