4. The shortest distance from a point to a straight line is

A. a parallel through the point to the line.

B. the perpendicular bisector of the line.

C. a vertical line through the point.

D. the perpendicular from the line to the point.