Butterflies taste their food through chemoreceptors on their feet. When they land on a plant to feed, they use these sensors to detect the chemical composition of the plant and determine if it is suitable for consumption. This allows butterflies to identify the taste of their food before ingesting it.