A baby quilt
A simple nine-patch or a few squares is enough. Avoid buttons, beads and long ties. The children's page says why small parts matter, and it points to the official guidance. Prewash the cotton. Use wadding you can wash.
Keep the quilting close enough that the wadding cannot bunch in the wash. Straight lines a hand's width apart are a start. The sandwich and binding pages are the method.
Do not add a loop for a cot rail unless you have read the current guidance and you are sure a loop is allowed. This site does not say that it is.
If this is for a baby or a child, current product rules are published by the Office for Product Safety and Standards and on GOV.UK. This site does not restate those rules.