First of all, before earthquake you must prepare the following
First aid kit
During the earthquake, you must perform the following
Always cover your head
Avoid going to tall structures such as buildings, mall etc.
And after that, go into safe place or evacuation center or meet up with your family