What is dramatic irony?

Dramatic irony is a type of irony that occurs in a literary work or dramatic performance where the audience has a greater understanding or knowledge of events or situations than the characters involved. It often creates tension or suspense as the audience is aware of impending danger, misunderstandings, or significant plot developments, while the characters remain oblivious to them. This can lead to comedic or tragic effects and is commonly used to engage the audience and build anticipation.