According to the ideas of William Smith, the correct answer is:
D. layers with similar fossils
William Smith, known as the "Father of Stratigraphy," emphasized the importance of fossils in dating and correlating rock layers. He proposed that rock layers with similar fossil assemblages would likely be of the same age. This principle is known as the law of faunal succession.