Building codes or ordinances are rules that tell builders how to make sure that the buildings they build are safe and meet certain standards. These rules are made by the government to keep people safe.When you have a home, you can buy something called building codes or ordinances coverage for your insurance. This coverage helps pay for the extra costs if your home is damaged and needs to be repaired or rebuilt to meet the new safety rules. This is important because sometimes old homes don't meet the new rules and it can cost more to fix them.
There are also laws that say what kind of insurance you need to have for your home, like flood insurance in areas that flood a lot. And there may be local rules that say you need certain safety things in your home like smoke detectors or sprinklers.
It's important to read your insurance policy carefully and talk to your insurance company to make sure you have the right kind of insurance for your home.