Alice plays along with everyone on their terms and they enforce their rules on her. In the futile attempt to answer the literal riddles asked by the queens and the members of the tea party, the order of Wonderland and Looking-Glass Land is uncovered. With each riddle, Alice finds why their riddles don't make sense. Every riddle is a struggle because of misunderstandings between Alice and the creatures. At the same time, Alice is posed with real riddles that follow the rule of nonsense.
Nonsense is the answer, always.
He has no answer. All of his narrations are like riddles. The Mad Hatter doesn't even understand that riddles contain certain necessary parts and that he has an obligation to know the answer when he asks the question. The Duchess has the opposite problem. The Duchess' morals are similar to punchlines, though they make little sense in addressing her anecdotes.