What is the difference between inlays and onlays?

Both are indirect fillings. Inlays fit within the cusps of a tooth, while onlays extend over one or more cusps.