The vast majority of us know how to light up spawners in caves and dungeons to suppress spawning but what most people don't know is what the spawn area is exactly and the restrictions involved.
If you are planning to make an XP farm using a spawner this is step one of the process. Armed with this info you can then get creative but efficient at the same time.
...
https://www.youtube.com/watch?v=xo3GanV9_Dk