The headstock holds the tuning keys - these are used to tune the guitar, a process that must be repeated frequently. More about tuning later.
The nut is what the strings pass over when they leave the headstock. On some guitars there is a fret (see below) beside the nut - if you have one, this is referred to as the zero fret.