A display device has a pixel array including a plurality of pixels arranged in a matrix and a backlight provided to face a substrate over which the pixel array is formed, and display element portions photosensor portions are formed in the pixels. In the display device, in one frame period for displaying a black image which is interposed between two successive periods forming an image or a backlighting shutoff period in one frame period in which the display element portion holds an image, an accumulation operation of the photosensor portion is performed, the pixels are successively selected for each row, and a signal corresponding to the potential of a signal charge accumulation portion of the photosensor portion is output.