Earthquakes can happen suddenly, but knowing what to do before, during and after one can reduce the risk of injury.