Also Japanese Patent Application Laid-open No. H09-109379 discloses such a structure that when the carriage is in a fixed position such as the capping position, a relative position between the cap and the carriage is fixed by a lock pin which engages with the carriage and a cap holder supporting the cap.