how to be safe during an earthquake ??

like i know you have to get underneath the table because when i was in school those were our earthquake drills. or go outside too for fire drills . like say god forbid it's an 6. soemthing earthquake and breaks houses. do we just go outside ?