My reply to an earlier post may, or may not, help
Neglecting subject movement, camera shake etc whatever you have focused on should be in focus and sharp.
Things nearer than the subject will be focused to a point slighly behind the sensor/film but as the light rays reach the sensor/film before they reach this focal point they will form little circles at the sensor/film.
Things further than the subject will be focused to a point slighly in front of the sensor/film so by the time the light rays reach the sensor/film they will have spread out again into little circles.
These little circles (known as Circles of Confusion) cause those things nearer and further than the subject to be out of focus.
However the human eye cannot see the little circles if they are very small so when we look at a picture there is an acceptable range of things in front of, and behind, the subject which we see as being in focus. This range of acceptable focus is known as Depth of Field (DoF).
If you have a large aperture the circles are larger than if you have a small aperture which blocks rays of light going through the edges of the lens and therefore creates smaller circles of confusion so a small aperture gives a greater DoF.
I did add a diagram to my earlier post but it gets very messy trying to show rays of light from different distances and at different apertures.
Have a look here instead
http://www.dbp-consulting.com/Photography/CircleOfConfusion.html and have a play