Vented cylinders need to be supplied by a large tank of cold water which is kept in the loft. The natural pull of gravity carries this water via a vent pipe (hence the name ‘vented cylinder’) down to the hot water cylinder which is usually stashed away in an airing cupboard.
As the water is heated it expands, but the presence of the vent pipe and tank in the loft provides an escape route for the excess.