DVI is pretty versatile connector, as is can host both digital and analog video signals. Remember that DVI is not a signal converter and cannot be used to convert digital signals into analog ones and vice versa. However, DVI cannot transmit higher-quality digital video (such as HD video content). This connector contains four pins located above and below the flat horizontal pin in the centre of the connecter. Two pins are present at the top and the other two at the bottom. These pins are merely used to transfer analog video signals.
Image Courtesy: memlane.com
On the other hand, DVI-D connector is purely designed to transmit digital video signals to display devices and it is not able to transfer analog signals. Unlike DVI connectors, DVI-D cables do not have pins, since they are used for analog transmission. DVI-D is can transmit high-definition (HD) content protection or HDCP of digital videos. It further protects the authorisation of protected content and it is used for high quality digital video connectivity in consumer electronic components.
Image Courtesy: imageshack.us