sediment from offshore sources are transported by waves/tides/currents to the coastline
or
sediment from terrestrial sources are transported by rivers/glaciers/wind/mass movement
usually form by coastal accretion, this is often accelerated as plants grow in shallow water which traps sediment and forms organic deposits when they die
coastal plains can also form when change in sea levels, usually a fall, exposes a flat continental shelf