Cap for a container, in particular for containing liquid foods, in particular for children, comprising: - a main body comprising: a) a tubular closure wall, closed on one side and provided with an entrance aperture on the other, internally provided with a threading for screwing the cap to the container; b) a guarantee seal, joined in rotation with the closure wall engageable with resistant elements of the container and provided with breakable portions for the rotation of the cap in relation to said resistant elements; c) a gripping wall which surrounds the closure wall, radially distant and integral in rotation with said closure wall, so as to define therewith an inner compartment open towards the outside on the side of the entrance aperture by means of a main aperture and on the other side by means of an auxiliary aperture having a free rim; - safety passages made above to allow the passage of air from the outside in the event of swallowing; characterized in that the cap comprises - a toy device having a toy compartment and a toy element free to move by agitation of the cap in said toy compartment and confined therein, the safety passages being made between the toy device and the free rim of the auxiliary aperture; and in that passages are made between the toy compartment and the inner compartment, and wherein the toy element has dimensions such as not to be suitable to traverse the passage from the auxiliary compartment to the inner compartment. - a main body comprising: a) a tubular closure wall, closed on one side and provided with an entrance aperture on the other, internally provided with a threading for screwing the cap to the container; b) a guarantee seal, joined in rotation with the closure wall engageable with resistant elements of the container and provided with breakable portions for the rotation of the cap in relation to said resistant elements; c) a gripping wall which surrounds the closure wall, radially distant and integral in rotation with said closure wall, so as to define therewith an inner compartment open towards the outside on the side of the entrance aperture by means of a main aperture and on the other side by means of an auxiliary aperture having a free rim; a) a tubular closure wall, closed on one side and provided with an entrance aperture on the other, internally provided with a threading for screwing the cap to the container; b) a guarantee seal, joined in rotation with the closure wall engageable with resistant elements of the container and provided with breakable portions for the rotation of the cap in relation to said resistant elements; c) a gripping wall which surrounds the closure wall, radially distant and integral in rotation with said closure wall, so as to define therewith an inner compartment open towards the outside on the side of the entrance aperture by means of a main aperture and on the other side by means of an auxiliary aperture having a free rim; - safety passages made above to allow the passage of air from the outside in the event of swallowing; characterized in that the cap comprises - a toy device having a toy compartment and a toy element free to move by agitation of the cap in said toy compartment and confined therein, the safety passages being made between the toy device and the free rim of the auxiliary aperture; and in that