A building code provides rules and standards for the design, construction, alteration, materials, maintenance, and performance of buildings.