In a sealed vacumn tube colored alcohol or mercury is placed. Both substances tend to grow bigger when they are heated and reduce in size when cooled. The liquid has no place to go but up when the temp is hot, or down when it is cold. A scale is placed on the outside of the thermometer to indicate degrees of heat or cool.