Definition of cap

What does the word cap mean?