Aperture or F-stop is the lens opening that controls how much light will pass through the lens. Regardless of the size of your lens, sensor, or film plane, a given f-stop will allow the same amount of light per square centimeter (or inch) to go past. The number selected for an f-stop is actually the denominator of the fraction 1/f-stop. The higher the f-stop number, the smaller the opening and the less light that will be admitted for your exposure. The f-stop controls your depth of field. A low number ensures that from near to far focus points a shallower area of clarity will exist. At higher numbers, the area that is in focus increases. Part of what makes an image interesting is having your eyes drawn to certain areas within the image. It is not important to have everything in the image tack sharp.
The danger in using small apertures is that they also increase diffraction of the light through the lens. On film, diffraction is not as much a problem as it is on a digital sensor because color spilling over onto another grain doesn’t cause the entire grain to react (individual atoms within the grain do react, but not the entire grain), but pixels react under a different set of rules and any light that spills onto even part of a pixel will trigger the entire pixel to react which softens the overall sharpness of the image. That is one of the drawbacks to using a digital camera in a situation that calls for keeping as much area in focus as possible. When in doubt, take the picture anyway and as your skills in processing your images increase, you may find a work around to the problem.
Selective focus is the principle technique that separates good photographers from the larger set of people that take pictures. Selective focus requires using your depth of field to keep the area of interest clear while letting the rest of the image blur. Sometimes, the blur will take on an appealing characteristic called bokeh. Bokeh is caused by the shape of the iris in the lens and the light pattern of the scene being photographed. Not all lenses create good bokeh, which is one more reason testing a lens on your camera prior to buying it is important.