Simply hold right click on the food item. The problem may be is that the item you are trying to eat is not a food item, for example wheat, eggs and sugar cannot be consumed.
Chat with our AI personalities
Carrots.
You feed CHICKENS by right clicking them with seeds.
feed it wheat
no
Currently you can't feed a squid anything on Vanilla Minecraft (vanilla meaning without mods). There may be some mods that allow you to though.