A cap, to me, is the lid for a pen or other object. An item worn on the head is always a hat to me. But I do not speak perfect English, AT ALL! There's probably some errors in this post.