As the summer holidays approach, Britain's parks, beaches and public spaces are about to get busier with families and children. In areas where they're allowed, there may be some dogs as well, but some should be avoided.

While many people tend to ask before petting a dog, Chris Maxted, director at dog door gate company Dog-G8, has said people need to think twice about approaching any animal that is wearing yellow. It may not be a bold fashion statement, and could be an alert to the public to stay away and give the animal space.

What does the colour mean for pets?

Chris said: "A yellow ribbon, bandana, lead cover or vest is a simple signal that a dog needs space. They might be nervous, in training, recovering from injury, elderly, arthritic or uncomfortable around unfamiliar people or dogs.

"People should treat yellow as a ‘do not approach’ sign and give the dog room to pass calmly. This makes a big difference to the dog and the person walking them."

While an adult can often understand the situation at hand, children may simply see a dog. Parents should take the time to teach children to ask before petting a dog, and why this colour code is a simple way to reduce stressful encounters -for pets and people - before they happen.

Dogs may have less tolerance than usual during summer when there is more noise, heat and humidity

During summer, it can be harder for some dogs when parks are busier, children are running around, and there’s more noise, heat and humidity. When dogs are overwhelmed, they may have less patience for being touched, crowded or approached by strangers.

How to safely approach a new dog

Children should always ask the owner before trying to stroke a dog, even if the dog looks friendly. The owner knows whether their dog is comfortable with strangers, children or other dogs approaching.

If the owner says no, that answer should be respected straight away. No one should try to persuade the owner, reach towards the dog or tell the child to try again.

Children should always ask before trying to stroke a new dog, even if it looks friendly

Never let children hug, kiss, chase, corner or put their face close to an unfamiliar dog. They should also avoid patting a strange dog on the head, leaning over them or making sudden movements.

If the owner says it is OK, start by standing still, staying calm and give the dog three seconds to decide whether it wants to come closer and stay. Chris said: "If the dog stays relaxed and close, gentle petting may be okay.

"If the dog turns away, freezes, backs up or walks off, the answer is no. [You] should stop interacting with the dog."