First of all, a dog should never be chained outside
Most dogs of guard or working heritage suffer personality quirks when tied
and many become downright aggressive. Dogs are better off in fenced areas,
where they can see the barrier between them and the world, where they can
feel somewhat safe from noisy, frolicking children. In addition, many dogs
instinctively equate the high-pitched sounds of children with the distress
sounds of prey animals, and they react by biting the child as they would
have bitten the prey animal in the wild.
Second, children should be taught how to behave around
even if their own family does not own a dog. For example, a child should
never approach a strange dog without asking the owner if it's OK to pat the
dog. If the child sees a loose dog on the street, he should not approach it
even if he knows the dog belongs to his friend. He should tell someone that
he saw the dog, but should make no attempt to pat or grab it.