homograph: two words are homographs if they are spelled the same way but differ in meaning (e.g. fair)
homonym: two words are homonyms if they are pronounced or spelled the same way but have different meanings