On my first trip to Japan, I walked into a friend's flat and stopped. Everyone was looking at my feet. I had forgotten to take off my shoes! My friend's mother just smiled and handed me a pair of slippers, but I felt terribly embarrassed. Since then, I've always tried to learn a little about local customs before I travel.
Customs are the small, everyday ways in which people behave, and they can be very different from country to country. In Japan, as in many other countries, people take off their shoes before going into a home. Tipping in restaurants isn't usual there, and a visitor who leaves extra money on the table might find a waiter running after them to give it back.
Greetings are different, too. In Britain, people often shake hands when they meet someone new. In France, friends and relatives often greet each other with a light kiss on each cheek. In Japan, people often bow, and the deeper the bow, the more respect it shows.
Food has its own customs. In parts of India and the Middle East, many people eat with their hands, and they use the right hand to eat and to pass things to others. In Spain, families often have dinner at nine or ten o'clock in the evening, which can surprise visitors who are used to eating much earlier.
Some customs are about the body. In Thailand, the head is seen as the most respected part of the body, so it's polite not to touch anyone's head, even a child's.
Of course, nobody can know every custom in the world, and local people usually forgive visitors who make mistakes. What matters is that you show you're trying. Learning to say "hello" and "thank you" in the local language, watching what other people do and asking politely when you're not sure all show respect.
There's an old saying: "When in Rome, do as the Romans do." It means that when you're a guest in another place, you should try to follow the way people do things there. I think that's good advice. If we adapt to other cultures, we don't just avoid awkward moments. We understand the world, and each other, a little better.