What is a temperature inversion and why is it dangerous?

A temperature inversion is when the temperature rises with height in the troposphere rather than decreasing, as it typically does. This is most common at the surface, particularly at higher latitudes on cold mornings. It isn't dangerous to my knowledge, except perhaps specific interests in aviation for example.