→The letters 'D' or 'L' before the name of any compound indicate the relative configuration of a particular stereoisomer of a compound with respect to configuration of some other compound, configuration of which is known.
→In the case of carbohydrates, this refers to their relation with a particular isomer of glyceraldehyde.
→Glyceraldehyde contains one asymmetric carbon atom and exists in two enantiomeric forms as shown below
→(+) Isomer of glyceraldehyde has 'D' configuration it means that the -OH group lies on right hand side in the structure.
→All those compounds which can be chemically correlated to D(+) isomer of glyceraldehyde are said to have D-configuration.
→Where as those which can be correlated to L (-) isomer of glyceraldehyde are said to have L-configuration. In 'L(-)' isomer -OH group is on left hand side.
→For assigning the configuration of monosaccharides it is the lowest asymmetric carbon atom (as shown below) which is compared. As in (+) glucose -OH on the lowest assymmetric carbon is on the right side which is compared to (+) glyceraldehyde. So, (+) glucose is assigned D-configuration.
→Other asymmetric carbon atoms of glucose are not considered for this comparison. Also, the structure of glucose and glyceraldehyde is written in a way that most oxidised carbon (in this case -CHO) is at the top.