The yellow ribbon on a dog's collar or leash is a sign to other people, that the dog needs some space and that you need to proceed with caution. The reason is that the dog may not be child friendly, have health issues, have fear or anxiety issues, or is in training. (from Tractive.com)