Creating a Smiley with a Cap
Start by creating a circle using elliptical shape tool.
Double click the layer to open layer style window. Apply layer style with the settings shown.
Create an elliptical selection using elliptical marquee tool. Create a new layer and apply a black to white gradient in linear mode.