Source wires having a semiconductor film thereunder are formed wide within a range that does not overlap pixel electrodes formed later. Thereafter, a resist pattern for use in patterning the pixel electrodes is formed so as to overlap edge portions of the source wires, and etching using the resist pattern as a mask is performed, whereby the pixel electrodes are formed, and in addition, the edge portions of the source wires are removed, whereby a structure in which the semiconductor film has a portion projecting beyond the source wires on both sides is formed.