Start by holding your hand under your dog's nose to allow the dog to sniff it.
Then hold your toddler's hand and have the dog do the same.
Next, pet your dog gently, and then hold your toddler's hand and repeat your actions.
Use simple terms such as "sniff hand" and "gentle" to let your toddler know what you're doing.