Fish feeding habits are specific to what kind of fish they are and where they live.

Fish can be carnivorous, herbivorous, and omnivorous... this means some of them ingest meat, plants, or both.
Algae are consumed by fish that only eat plants and those that will eat anything. Sea grass and algae are also eaten by fish that are herbivores. Detritus, an accumulation of dead organisms, coral slime, and fecal matter, is also part of the diet of many fishes.
Some omnivorous fish, on the other hand, have a diet consisting mostly of sponges.
Closer to the sea floor, you will find crustacean feeders. The biggest part of their diet is crabs and shrimps.
Bottom feeders are omnivorous, and will eat almost anything they find. This includes worms, crustaceans, and small fish.
Other invertebrate feeders enjoy snails, shrimp, crabs, clams, and starfish. In the open water, plankton is found floating and is enjoyed by plankton feeders. It includes amphipods, shrimp, fish, and fish larvae. Fish feeders are also called ambush feeders, because they either wait till their prey comes close by, or lure them closer.
Lastly, parasite pickers are just that. They eat parasites found on other fish. Freshwater fish, too, have a varied diet. They will eat bugs that land on the water and also eat insect larvae that are under the water. They also like worms, small fish and frogs, aquatic plants, crayfish, and minnows.
Some kinds of fish are more specific in what they each and how they feed:
Here are a few fascinating fishy facts to keep you busy:
There are thousands of species of fish in the world. Fish are cold-blooded and usually covered in scales. They have two pairs of fins, and most are oviparous, which means eggs are fertilized and develop outside of the female’s body.
Fish “breathe” with gills. Water is taken in their mouth and pushed over the gills, where oxygen is exchanged for carbon dioxide.
The variety of fish is large, and the foods eaten by fish are an even larger variety.