Formation of sea breeze:
During day time, land gets heated faster than the sea water. On the one hand, heated air rises up, creating a temporary low pressure region and this draws cold air from the sea towards it. This happens because land surface absorbs and radiates heat readily because it has low specific heat capacity. On the other hand, liquid gets heated up slowly and radiates the heat in it at a slower rate, as it has a very high specific heat capacity. This breeze blowing from the sea towards land is called sea breeze.
Formation of land breeze:
During the night, as land loses its heat quickly, it cools faster than sea water. However, the surface of the sea is still hot, as it loses heat slowly. Therefore, the hot air above the sea rises up and cold air from the land moves towards the sea. This breeze blowing from the land to the sea is called land breeze.