I was always taught that even if the dog looked friendly, never try to pet it on the head, It may think you are striking it, Always offer your hand below the chin. Of course if they are going to bite, its easier to reach