It's good to know the mechanics of a chess trap.
It's even better to know the sequence of moves leading up to a trap.
The About Chess Trap Quizzes (see the link box in the upper right corner of this article) test your sense of danger on specific positions.
The table below lets you play through the full game for each trap.
The link in the first column leads to the About Chess game viewer where you can play through the game to see the moves leading to a trap.
The second column is the ECO code identifying the opening leading to the trap.
The third column is the quiz position for the trap.