Similarity: Both elements and compounds are pure substances because they both contain only one type of molecule respectively.
Difference: The elements can not be further decomposed through chemical processes whereas the compounds are formed from two or more elements through chemical combinations with a fixed ratio so can be further decomposed through the chemical process into their constituent elements.