Which sentence has no errors in the use of capital letters?

A."Be careful!" he exclaimed. "that bridge is not stable!"

B."be careful!" he exclaimed. "That bridge is not stable!"

C."Be careful!" He exclaimed. "That bridge is not stable!"

D."Be careful!" he exclaimed. "That bridge is not stable!"