Answer:
A carnival has rides and acts that only stay for a few days. They travel from place to place, and generally have some rides and many acts.
A fair is a large exposition of sorts, allowing all of the people of an area to show their prowess in the domestic and agricultural arts. In recent years, it has become more like a carnival, at least in the rides section.