This classic for eight to 10 may look simple, but its success is in the details: short, crisp pastry that is neither too thick nor too thin, and a silky, just-set filling of eggs, whole milk, nutmeg and ham. Flour, butter and salt are rubbed together to breadcrumbs, then egg yolk and cold water bring the pastry together before it chills. It is rolled out to line a fluted tart tin, trimmed, pricked and chilled again. Onions cook in butter until golden and soft, then go over the pastry with chopped ham. Hot milk is whisked into eggs seasoned with cayenne, nutmeg and salt, cooked until thickened and pale, then poured over and baked until just set. Find more ideas in quiche recipes and savoury tarts.

Why it works

Rubbing the butter in with your fingertips keeps the pastry short and crisp, and chilling it twice stops it shrinking. Cooking the onions slowly makes them sweet and golden. The custard is thickened gently on the hob before it goes into the case, and baked only until just set, so the filling stays silky. A little cayenne and nutmeg season the eggs.

Make it easy

For a crisper base, blind bake the pastry case: line with baking paper and baking beans and bake for 15 minutes, then remove them and bake for a few minutes more. Bake until the filling is just set with a slight wobble in the centre; it firms up as it cools. Cool in the tin before removing and slicing. For more ideas, see savoury bakes.

Swaps

Use smoked bacon lardons, fried until crisp, in place of ham. Add a handful of grated gruyère over the onions before the custard goes in.