If your dog has black nails, just trim off the edge of the nail, since you won't be able to see the quick.
If you cut a nail too short and it begins to bleed, apply pressure to the tip of the nail to stop the bleeding, or dip the nail in the cornstarch or styptic powder.