The first step to survive a zombie attack is to have people with you. This is in my opinion is the number one way to survive. What about weapons and food you say, well calm down and let me explain. Say all you had were people and a zombie starts running at you. What do you do? You push a fellow survivor down so the zombie stops to take care of him and you and your group run to safety. You may think this is mean, but think of it this way. It's either you or him.
Step 2: Weapons
One of your top priorities is to get weapons. But not just any weapon is good. For a melee weapon, your weapon must be at least four feet long so the zombie can't claw you, light so that you can use it faster, and must be able to take a zombie's head off on the first or second hit. A good example is an axe or chainsaw. For a firearm, it must be able to kill a zombie on the first or second shot. It must also be light weight if you don't have a shelter, be fast and easy to reload, and have plenty of ammo. If you don't have a shelter, a good gun is a pistol, preferably a desert eagle or a magnum. If you have a shelter, a good weapon would be a shotgun or a rifle of any kind.