Taphophilia is a passion for and enjoyment of cemeteries. The singular term is a taphophile.
Taphophilia involves epitaphs, gravestone rubbings, photography, art, and history of (famous) deaths. An example of an individual’s expression of taphophilia is the character Harold in the movie Harold and Maude (1971).
Taphophilia should not be confused with necrophilia, which is a sexual attraction to corpses.