Answer:
Onomatopoeia
Explanation:
Once upon a midnight dreary, while I pondered, weak and weary, LINE 1
Over many a quaint and curious volume of forgotten lore— LINE 2
While I nodded, nearly napping, suddenly there came a tapping, LINE 3
As of some one gently rapping, rapping at my chamber DOOR. LINE 4
"'Tis some visitor," I muttered, "tapping at my chamber door— Only this and nothing more. LINE 5
Onomatopoeia is a very common literary device that is used to show or depict the sound of something.
In this case, it is used to depict the sound made by someone knocking on a door.
Rapping in this context means knocking on a door.