A yellow ribbon around a dog's collar is to help children identify that you need to proceed with caution.
The dog may not be child friendly, may have fear or anxiety issues, or may be overly excited.
Either way, caution should be applied when approaching.