Elegy refers to a poem of lament or praise for a dead person.
- Walt Whitman wrote a famous elegy on the death of Lincoln.
Eulogy refers to speech or writing in praise of someone, usually dead.
- Earl Spencer wrote a moving eulogy to his sister, Princess Diana.