They are used to show "continuous data", or the data that is distributed in small intervals within a certain range. For example, the histogram of number of students scoring the marks in a particular range is given below.
A histogram is a bar graph of raw data that creates a picture of the data distribution. The bars represent the frequency of occurrence by classes of data. A histogram shows basic information about the data set.