This chapter shall apply to the construction, alteration, repair, equipment, use and occupancy, location, and maintenance of every building or structure or appurtenances connected to or attached to such buildings or structures, except for one- and two-family dwellings.