An ink tank detachably held on a tank holder, having a movable lever with a first engagement latch to engage with a first engagement hole provided on a side wall of said tank holder and a second engagement latch to engage with a second engagement hole provided on another side wall of said tank holder opposite to the side wall having said first engagement hole,
- wherein said ink tank has a positioning pin on its bottom surface, and said tank holder has a positioning hole to receive the positioning pin upon attachment of said ink tank to said tank holder,
- and wherein a prism is provided on an inner bottom of said ink tank such that said prism is positioned opposite to the position of an optical sensor for residual ink detection provided outside of said ink tank when said ink tank is attached to said tank holder,
- further wherein said prism is provided in a position between the second engagement latch and the positioning pin,
- further wherein the positioning pin and the positioning hole have thrust portions to thrust upon each other, and the thrust portion of the positioning pin has a flat surface.