Homonyms are words that:
Homonyms are both homophones and homographs.
However, the word “homonym” is often used more broadly to refer to any word belonging to the category of homophones or homographs.