Workin With Vertices

Ok so new to blender and the whole 3d modeling. I was wondering is there a way i can select a bunch of vertices and then have them all lay on the same level on the x,y,z plane

Scale them to 0 on that axis, e.g. S > Z > 0.

whooo thanks man