I'd like to add some other points.In Chinese,的 is the symbol of attribute, 地 is that of adverbial,and 得 is that of
complement.
They are usually used like this:
的:adj./n./ pronoun +的+n.
Example 1: as Matt mentioned: 红色的帽子 red hat ( adj.+ 的+n.)
Example 2:鸟儿的翅膀bird's wing (n.+ 的+n.)
Example 3:她的笑容her smile (pronoun +的+n.)
得:usually the word behind “得” are used to supplement the word before “得”.
It is usually used like this:
v./adj.+得+adv.
Example 1:as Matt mentioned: 干得好 well done(v. +得+adv.)
飞得高 fly high(v. +得+adv.)
Example 2: 黑得可怕 horribly dark (adj.+得+adv.)