There used to be something called decorum, a set of behaviours everyone agreed upon, accepted as social mores and considered good manners. For example, one does not speak loudly in a library or crack a joke at a funeral.
Read this post on riflerangeboy.com