There's a lot of misinformation out there, and it's understandable to be confused. Now that you know what to do, make sure you also know what not to do:
Do not run outside
Do: Shelter in place using Drop, Cover and Hold On
Do not get in a doorway
Do: Shelter in place under a table. In modern houses and buildings, doorways are no safer, and they do not protect you from flying or falling objects.
Do not make phone calls
Do: Text. After experiencing a large earthquake, it’s natural to want to reach out to friends and family. A text will have a better chance of getting through than a phone call, which is more likely to experience network congestion. Too many calls can overload the communications grid, making it harder for first responders to get their calls. Everyone will be safer if you limit your calls after an earthquake. And if you don't have power, you'll want to save your phone's battery power for when you need it most.
Likewise, don’t call 911 unless you’re experiencing a true emergency. Unless someone is hurt, leave that system open for first responders to get to the injured as quickly as possible.