There are no bad dogs....only bad dog owners.
I honestly do wonder how people survived in the past without this knowledge?
Personally, I keep a smaller child close by to distract the dog, in order to let the other child escape.
I’ve got Jack Russells and they generally aren’t kids dogs. Mine have been pretty good with kids but the Jacks do watch them for sudden movements.
I let a strange dog inspect my hand, palm down, but with fingers closed. I read somewhere that's the best way. It makes sense. A deep dog bite to the fist is bad but you’re less likely to be missing fingers.
Keep the dog in it’s fenced yard, or on it’s chain and they cannot bite kids. But you can change that to inside the house.
What about keeping the dogs safe? LOL My grandson—1 year old last Weds.—learned to growl at 6 months. We have 3 rat/chi’s. Hubby tried to take a pork chop bone away from gbaby last week, and gbaby growled at him. The interaction between our dogs, who have been “baby” for all of their lives, and gbaby, is hysterical.