Mercury is used in thermometers to measure temperature because:
It changes color with temperature
It expands or contracts with temperature
All of the above
Mercury, being a metal is a good conductor of heat and remains liquid at room temperature and can flow. So, as the temperature of mercury increase, it expands and the length of mercury column increase. Also, it is shiny (so easily visible) and does not stick on the walls of test-tube and multiple readings can be taken in short time.