A power outage can occur for any number of reasons:
When the power goes out in your home, for whatever reason, keeping your refrigerated and frozen foods cold is the most important factor. The next in importance is keeping your family warm, if it's winter, or cool, if it's summer. And thirdly, you will need lights of some kind if the power outage extend into the night.
If the power is out for less than 2 hours, then the food in your refrigerator and freezer will be safe to consume.
If the power is out for longer than 2 hours, follow these guidelines:
Freezer foods may be refrozen if ice crystals are present. Exceptions include ice cream, pizza, and casseroles. If the frozen food has completely thawed but is cold, it must be cooked within a 24-hour period; or foods may be refrozen within 24 hours after thawing. However, quality may be diminished. If in doubt about when the food actually thawed in the freezer, discard the thawed food.
Dry ice may be used to keep frozen foods frozen and cold foods cold. Be careful not to handle dry ice with bare hands or breathe the vapors.
It's always a good idea to have some canned or freeze dried food on hand during a power outage, in case you have spoiled food or to keep from opening the refrigerator or freezer too often.