How do you make a horse spawner in minecraft?

Solution 1:

A spawn egg will not interact with a spawner in survival mode. When a spawn egg is "used", it will spawn the mob adjacent to the surface of the block it was used on (emphasis mine):

The Player can place the Spawn Egg of choice into a Monster Spawner, before switching to Survival, which then will spawn that Mob continuously

Source

This unfortunately means that outside of commands, there is no way to create a custom mob spawner in survival mode.