Tapeworms are usually transmitted through the consumption of undercooked or contaminated food, particularly meat from infected animals. Children can also become infected by ingesting tapeworm eggs from contaminated water or soil, or through poor hygiene practices.