Food restrictions are one of the first things worth researching before any trip, because getting it wrong can genuinely offend. In many Muslim-majority countries pork is avoided entirely and alcohol may be restricted or banned in public; in India, beef is off the menu in most places and many people are strictly vegetarian for religious reasons. Jewish kosher and Muslim halal rules also cover how meat is prepared, not just which animal it comes from.
A good habit is to follow the lead of your hosts. If you are invited to someone's home, mention any restrictions of your own in advance and never insist on bringing alcohol or certain foods as gifts without checking first.
During religious periods like Ramadan or certain Hindu festivals, eating publicly in daytime can be sensitive in some countries. Rules vary a lot by country and even by region, so a quick read of official tourism guidance for your destination goes a long way.