[header] How to gain the trust of a stray dog [title] Project calm. [step] You may feel a bit anxious, but it's important that you appear calm at all times. Speak to them in a friendly, even voice. 
Move towards them in a slow, deliberate way. [substeps] It may also help to make soft clicking noises with your tongue to get the dog's attention without alarming it.