A short poem written on a tomb is an epitaph. An epitaph is a short text or poem honoring a deceased person, often inscribed on a tombstone or plaque. It usually includes the name of the person, their dates of birth and death, and a brief message or sentiment in their memory. Epitaphs can be serious or humorous, and may also include religious or philosophical elements.