Make sure the dog wants to be petted. You can easily alienate a dog by approaching one that is nervous or agitated.
[header] How to befriend dogs [title] Make sure the dog is friendly. [step] When approaching a strange dog, be particularly aware of its body language. If an owner is present, ask the owner if the dog is friendly.