A building code may provide rules for many different things and is influenced by materials manufacturers, firefighters, and building officials. The building may need to follow rules about providing parking or affecting traffic. There will be rules about making the building safe during disasters, such as fires, earthquakes, and tornadoes.
The rules used on a specific building may be very different depending on where the building is and what it is used for. For example, a house will have extra rules about making sure people can live there, while a hotel will have extra rules about fire exits. Many public buildings have a "maximum occupancy" for some rooms, which is how many people may be allowed into that room at once.
Seismic design is based on procedures meant to protect structures that may experience earthquake impact. However, a design which blindly follows seismic code rules does not guarantee safety against collapse or serious damage.
|40x40px||Wikimedia Commons has media related to Building code violations.|