No one wants to be bitten by a dog, and there are some things that you can do in California to keep this from happening. For example, you may want to read up on different breeds and their temperaments when you are trying to decide what dog to get as a family pet. You can then pick one that will be good for your family and that pose a lesser risk than some other breeds might.
Of course, many bites come from dogs that are not owned by those who are bitten. If you do not know a dog -- it could be a stray or a dog on someone's property -- do not go near it. You may be tempted to pet it, especially if you have a pet dog of your own, but this is opening yourself up for a potential attack.