difference between a homophonic pun and a homographic pun

A homophonic pun is a type of pun that plays on words that sound similar but have different meanings, while a homographic pun is a type of pun that plays on words that are spelled the same but have different meanings. In other words, homophonic puns rely on similar-sounding words, while homographic puns rely on words that are spelled the same.