An inlay is usually an indirect restoration fitted to a cavity in a tooth and cemented into place. This technique involves fabricating the restoration outside of the mouth using the dental impressions of the prepared tooth, rather than placing a soft filling material into the prepared tooth and let it set.
An onlay is the same as an inlay, except that it incorporates a replacement for a tooth cusp by covering the area where the missing cusp would be.