Parts of a hat can include the following:
Crown - the portion of a hat covering the top of the head
Bill - a projection of stiff material from the bottom of the hat's crown, typically forward, and usually for shading the eyes (also "peak")
Brim - a projection of stiff material from the bottom of the hat's crown horizontally all around the circumference of the hat