Check your flood risk and consider flood insurance. Standard homeowner policies usually don't cover flooding, and flood policies generally have a waiting period before they take effect (see FloodSmart).
Know the nearest higher ground and your route to it. Keep documents in waterproof containers.
During
Move to higher ground early. The National Weather Service slogan is Turn Around, Don't Drown: about 6 inches of fast-moving water can knock an adult down, roughly 12 inches can carry away a small car, and about 2 feet can sweep away an SUV or truck.
Don't walk or drive through floodwater.
After
Treat floodwater as contaminated: sewage, chemicals and debris. Wash well after contact.
Throw away food and water that touched floodwater; follow boil advisories. Don't use electronics or appliances that got wet until checked.
Dry out quickly to limit mold, and wear gloves and a respirator for cleanup.