Why coastal areas have moderate temperature?

Why coastal areas have moderate temperature?

Coastal areas have moderate temperature because the land absorbs and radiates heat much faster than sea. So, during the day cool air from sea rush towards the land and during night cool air from the land rush towards sea.