In addition to the other great explanations here, I will add that objects which have a temperature (for example, anything with mass, such as a planet, or my dog) radiate energy in the form of heat, and that this thermal radiation is a form of electromagnetic radiation (another form of electromagnetic radiation is light, light including non-visible light such as radio waves and x-rays and gamma rays).
Latest Answers