Answer:
There are two types of age determinations. Geologists in the late 18th and early 19th century studied rock layers and the fossils in them to determine relative age. William Smith was one of the most important scientists from this time who helped to develop knowledge of the succession of different fossils by studying their distribution through the sequence of sedimentary rocks in southern England. It wasn't until well into the 20th century that enough information had accumulated about the rate of radioactive decay that the age of rocks and fossils in number of years could be determined through radiometric age dating.
Principle of superposition: Younger sedimentary rocks are deposited on top of older sedimentary rocks.
Principle of cross-cutting relations: Any geologic feature is younger than anything else that it cuts across.
The dating of fossils was originally done by their placement in a geologic column of rock strata. Because of the Law of Superposition, the deeper the stratum, the older it is (in an undisturbed body of rock or sediment). Fossils which were evident in a particular stratum, but missing from other strata were noted as "index" fossils. The presence of these fossils indicated the age of the stratum relative to other layers. The layers of stratum were placed in a geologic column, subdivided, and assigned names based on the presence of different types of fossil organisms.This is the basis of "relative dating" of rock layers and fossils, a dating technique that was in effect until the advent of radiometric techniques in the twentieth century.