What is a limerick?

Limericks follow a pattern. In a limerick the first, second and fifth lines have the same rhythm and rhyme. The third and fourth lines rhyme with each other too.