Generalitat de Catalunya. Departament d'Educaciˇ

Earthquakes can be among the most destructive natural disasters. Earthquakes happen mainly near the edges of tectonic plates, but they can happen anywhere. Earthquakes cannot be predicted, but your chances of survival are much better if you prepare in advance and you know what to do in case an earthquake strikes.

If you are in a Vehicle
1. Stop as quickly as safety permits and stay in the vehicle. Avoid stopping near or under buildings, trees, bridges, and sources of electricity.
2. Stay seated where you are in your car, and wait until it is over.
. Cars are made up of metal, and that metal cover will protect you and your family from most debris and falling objects.
. When you are in a garage, get out of the car immediately, and crouch down next to it.
. Do not try to rush back to your home. Most major earthquakes have aftershocks.
3. Proceed carefully once the earthquake has stopped. Avoid roads, bridges, or ramps that might have been damaged by the earthquake.
4. Wait for emergency services to come in. You shouldn't wait in your car very long for emergency services to come in with food, water, and supplies.

If you are in a Building
1. Hold onto a solid object or get to the floor so that you do not fall.
2. Drop, cover, and hold. The alternate advice is to get next to a strong piece of furniture. If a wall falls, it will create a space in which you can survive. This "triangle of life" method, however, is not recommended by the American Red Cross, Structural Engineers Association of Northern California Response, and Earthquake Country Alliance

If you are trapped, try to alert authorities to your presence, but remember that screaming consumes clean air. Sulfur dioxide, carbon dioxide and other toxic and dangerous gases can be harmful to your body. A whistle or a horn could be helpful there.

If you hear of a tsunami warning, leave the beaches immediately. Thousands of people were drowned in the 2004 tsunami when people stared at the "empty ocean." Moments later, a powerful tsunami hit the shoreline, killing thousands and destroying many buildings.

Being on the upper floor(s) of a building is more dangerous than being on the ground floor. While you can get crushed by rubble from the upper floors if on the 1st floor, falling down onto the rubble is much worse. The basement isn't the best place to go either. You can get completely buried there.

SOURCE: Wikihow