The provisions of this article shall apply to all residential structures in the city containing one or more bedrooms or sleeping spaces which are either rented for human habitation or permitted by the owner thereof to be occupied for human habitation by a person other than the owner thereof. Every building or structure, or part thereof, rented for use in whole or part as a home or residence of a single-family or person, and every building or part thereof rented for use as a home or residence of two or more persons or families living in separate apartments, shall conform to the requirements of this article, regardless of the class to which the building may otherwise belong, and regardless of when the building may have been constructed, altered or repaired.